view.smartyMVC]. * * This class makes the initialization of Smarty template engine. * This class is a part of SmartMVC library. * * @version 1.00 (06/05/2004) * @package Smarty * @author Alex Koshel */ class smartyMVC extends Smarty { /** * Construtor for the class. * * This constructor must be called from the constructor of every * page-oriented class of SmartMVC. Class page makes this call. * * @return smartyMVC */ function smartyMVC() { parent::Smarty(); $this->template_dir = TEMPLATE_DIR; $this->compile_dir = TEMPLATE_DIR . DIR_SEP . 'templates_c'; $this->config_dir = TEMPLATE_DIR . DIR_SEP . 'configs'; $this->cache_dir = TEMPLATE_DIR . DIR_SEP . 'cache'; $this->caching = false; $this->assign('app_name','SmartMVC'); } /** * Passes the variable to Smarty. * * It's a shortcut to assign() method of Smarty for compatibility * with patTemplate engine. * * @return void */ function addGlobalVar( $varname, $value ) { $this->assign( $varname, $value ); } } ?>