[PHP] PHP web archeticture
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: switch($page){ case "UserListPage" if(action==saveUser) userObject->saveUser(_$POST) displayTemplate("UserList") case "EmailPage" . } Thanks. j.m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't even make a simple test RSS feed
go view->source in your browser. Some browsers will not show the xml all though it is in the source On 6/24/05, Brian Dunning <[EMAIL PROTECTED]> wrote: > What am I doing wrong? This doesn't work. The browser does not even > load the page, no error or anything: > > > echo ''; > echo ''; > echo 'hdfghdf'; > echo 'dfghdfh'; > echo 'http://somelink'; > echo ''; > echo ''; > > ?> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP web archeticture
Thanks a bunch. I have alot of work now ahead of me to decide which framework to use. Any opinions on which one is the best? On 6/24/05, Catalin Trifu <[EMAIL PROTECTED]> wrote: >Hi, > > You can take a look at phrame.sf.net, phpmvc.net, horder.org, > binarycloud.com > adodb.sf.net (for fast db abstraction layer). > Read around and one of those will surely satisfy your needs. > > Catalin > > > Joe Muddah wrote: > > 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: > > > > switch($page){ > > case "UserListPage" > > if(action==saveUser) > > userObject->saveUser(_$POST) > > > > displayTemplate("UserList") > > > > > > case "EmailPage" > > . > > } > > > > > > Thanks. > > > > j.m. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php