You are here: PHP web archeticture « PHP « IT news, forums, messages
PHP web archeticture

Posted by Joe Muddah on 06/24/05 22:30

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация