Vidarious
Vidarious

Reputation: 826

PHP Site Structure Technique with CSS/Javascripting Includes

Technique #1:

Problems #1:

Technique #2:

Problems #2:

I started using technique #1 until I ran into major javascript issues. I am now considering moving to technique #2 and just dealing with template changes as necessary.

What technique do you use and how do you solve the CSS/JS include issue?

Upvotes: 0

Views: 93

Answers (1)

cProg
cProg

Reputation: 126

I tend to have one CSS for the whole web site or at most 2 CSS file when a unique CSS file will be very long. In such case, I define in the first CSS file the general ayout of the web site and the common structure shared by the web site pages, and in the second CSS file I will define the layout specific to a page or to an object.

Upvotes: 0

Related Questions