Re: [SMARTY] Understanding Smarty's role

From: Date: Mon, 03 Feb 2003 18:59:04 +0000
Subject: Re: [SMARTY] Understanding Smarty's role
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7486@lists.php.net to get a copy of this message
Does the section below the line sound like a reasonable use of Smarty? My questions are: A/ Does anybody or Smarty in general use standard function names in objects for Smarty to call when Smarty is passed an object or a function? example, obj->return_all(); B/ Does the error document get the entire original environment, i.e. Protocol Domain Subdomain Path Document cgi_vars post_vars cookie_vars languages ----------------------------------------------------------------------------------- The document at: http://internet.oit.edu/~gearond/SiteFlow.gif is the way our site will be designed. Smarty will be the template engine. http://smarty.php.net/ ADODB or Metabase will be the database abstraction Probably ADODB http://php.weblogs.com/ADODB http://phpclasses.promoxy.com/browse.html/package/20.html The database itself will be PostgreSQL http://www.postgresql.org/ ftp://ftp10.us.postgresql.org/pub/postgresql/ The application switchyard ------------------------------- will probably be the error document for the site. What happens is that there are no documents in the filesystem except the error document. The templates and includes are in another tree. So if ANY document is requested, the error document is served instead. This error document gets the name of the requested document. If that document exists in the database catalog of documents, the error document sends the request to the templage engine, along with the template to use and other data. The templage engine assembles the document, using new data as needed and dated, cached material if possible (for speed), it then combines it all into ONE string, and outputs the string to the site user. If the document DOESN'T exist, a standard, or customized (based on what was requested) error page can be returned. The Interface Array ------------------------------ will just be a PHP array that all documents will draw variable contents from. Things like: Template, Center_Pane_Contents, Left_Menu_Contents, Top_Menu_Contents, Page_Label_Graphic, etc.

« previous php.smarty.general (#7486) next »