fishing for ideas
| From: | Chris Hubbard | Date: | Tue, 16 Sep 2003 04:09:38 +0000 |
| Subject: | fishing for ideas | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10219@lists.php.net to get a copy of this message | ||
All,
I've been using smarty for a while, and I love it.
Looking for some architecture ideas.
Here's the scenario.
I've got one database that holds the data for N web sites. Everything in
the database is related by the web site id. Cumbersome but works. All the
data for all the sites is administered through one administrative backend,
which I've already built and it works fine (using smarty). Each of the
"public" web sites will have a different look and feel, and conceivably will
have a different page layout, (where some pages have two columns, other
three).
I have HTML layouts for all the current sites (three at this point, may grow
to about a dozen).
One experiment I did was to create a separate template file for each page
component, and then have one main template that supplies the
framework/skeleton that all the component templates are included in. This
is great except I have to manually build each main template by hand, I would
rather have each main template either loaded from an array (derived from the
database or from a web form used to define the array).
In a loose sense I guess I'm creating a page builder like Geocities/Yahoo.
Anyone done anything like this? Have a preferred way? Know of pitfalls?
Thanks,
Chris Hubbard
chris@wildcharacters.com
www.wildcharacters.com
425 481 2020
php based web application development
Y! hoponpopontoponmoponcop@yahoo.com
MSN another_ganesha@hotmail.com
AIM ganeshacph