[phpMP-CVS] CVS: phpMP/includes template.php,1.19,1.20
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2002-11-30 05:56:13
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv20105 Modified Files: template.php Log Message: Modified handling of var loading and how we're doing a bunch of stuff. Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** template.php 5 Nov 2002 22:11:06 -0000 1.19 --- template.php 30 Nov 2002 05:56:09 -0000 1.20 *************** *** 4,6 **** // This will utilize a flat-file template system. ! ?> \ No newline at end of file --- 4,53 ---- // This will utilize a flat-file template system. ! class Template extends Smarty ! { ! ! // Initiates the Template engine. ! // Author: Brian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. ! function Template() ! { ! ! // Set up the directories for Smarty. ! $this->template_dir = './templates/' . TPL_DIR; ! $this->compile_dir = './templates/' . TPL_DIR . '/compile'; ! $this->config_dir = './templates/' . TPL_DIR . '/configs' ! $this->cache_dir = ''; ! ! // Turn on compile_check. ! $this->compile_check = 1; ! ! // Switch for caching. ! $this->caching = false; //Caching does not currently work. Maybe later. ! ! } ! ! ! // Assigns template constants. ! // This function should somehow be integrated into constants.php. ! // Author: Nrian 'Heimidal' Rose ! // Accepts: none. ! // Returns: none. ! assign_constants() ! { ! ! $this->assign( array( ! ! "SITE_ADDR" => SITE_ADDR, ! "REL_PATH" => REL_PATH, ! "TODAY" => TODAY, ! "TPL_DIR" => TPL_DIR, ! "SITE_NAME" => SITE_NAME ! ! ) ); ! ! } ! ! } ! ! ?> |