* Joe Muddah <muddah@xxxxxxxxx>: > I am trying to design a website archeticture. Does anyone have any > links or experience with archetictures that actually work. Any ideas > of how to layout a website would be greatly appreciated. > > This is what I am thinking of doing > > 1)Seperate Logic from presentation > Using Templates (Smarty) for presentation > Using PHP Objects for logic (no echo statements) > > 2)Use Controllers to bring together logic and presentation > I don't really have an idea yet of how to do this. I am thinking > about having something like a page variable to figure out what > template to output, action variable to figure out what objects are > called (save, delete, etc.). All this would be under a switch > statment. Example: <shamelessSelfPromotion> I'm the author of the PHP port of Perl's CGI::Application, Cgiapp.class.php (http://cgiapp.sourceforge.net/). Cgiapp is designed for exactly the usage you present above. It is a lightweight, abstract Controller class upon which you build your application class. All screens are handled as 'run modes', and each run mode is a method in the class. Templates are used by default, with Smarty being the default engine, though the template methods may be easily overridden to accomodate other template engines (several users indicate they use it with Savant). Additionally, it's built to allow the creation of reusable, customizable web applications. Your libraries can be placed in one location, and then instance scripts in your document root may customize the behaviour of the application through parameters passed to the constructor. I've used it on two of the sites below, garden.org and nationalgardenmonth.org, both of which get very high traffic. Additionally, I've used it on a client site for a Fortune 100 company. It's robust and tested. If you give it a whirl and have questions, feel free to email me directly. </shamelessSelfPromotion> -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:matthew@xxxxxxxxxx | http://vermontbotanical.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php