number of include()s

  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Joined: Jan 25, 2004
  • Posts: 776
  • Loc: Nippon
  • Status: Offline

Post May 25th, 2004, 1:34 am

Instead of a head include, a footer include, and a nav include, I usually make one page template and have one switch that actually takes care of each page.

DB includes and what-not I can understand, but when you separate the header, footer, and nav you've just got more files to edit to take care of one single page than you would if you made one template with everything on it and made a "brain" switch for managing actual pages.

But that's just my method.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 25th, 2004, 1:34 am

  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post May 25th, 2004, 1:41 am

gsv2com wrote:
Instead of a head include, a footer include, and a nav include, I usually make one page template and have one switch that actually takes care of each page.

DB includes and what-not I can understand, but when you separate the header, footer, and nav you've just got more files to edit to take care of one single page than you would if you made one template with everything on it and made a "brain" switch for managing actual pages.

But that's just my method.


I agree although i just have two functions ie printDoc($title, $body)
which returns a formatted XHTML string, the navigation and the body and one for the footer ie printFooter inside the same file :D
Watch me grow

Post Information

  • Total Posts in this topic: 17 posts
  • Users browsing this forum: No registered users and 155 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.