[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Prefered method of setting up a site
From:       Nico Meijer <lists () familiemeijer ! org>
Date:       2006-06-25 11:24:05
Message-ID: 20060625132405.3d203abd.lists () familiemeijer ! org
[Download RAW message or body]

Hi Børge,

> Does anyone have a opinion or a pro/con list on how to set up a site
> with many pages?

Drive the site with templates and a database.

> I up till recently used the normal method with index.php page1.php
> page2.php page3.php ish kind of way.
> this gave me after some... thousands of upgrade... thousand of new
> files to include, just as many CSS files quite a few headerfiles, so on!

Been there, done that, hated it. ;-)

> However a newer design of stuff leaves me with one index.php, one css
> file, and then no header/footer since the index file keeps track of
> everything needed in all files. Else the needed stuff is included in
> the apropriate file. index.php?otherpage=someother.

I've almost completely switched to Smarty[1]. Let php do the math, hand
the data over to Smarty and let the templates do the layout.

Quanta's project templates folder is wonderful in this regard, as I like
to keep all Smarty related stuff outside the webroot, but the templates
are only a click away.

Packt publishing[2] has a book out on Smarty. It's on my shelf, but I've
yet to read it. These days, there's only 16 hours to a day or so it
seems...

[1] http://smarty.php.net/
[2] http://www.packtpub.com/

HTH... Nico
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic