Exemplo n.º 1
0
 function init()
 {
     parent::init();
     $this->_smarty->template_dir = TEMPLATE_REALDIR;
     $this->_smarty->compile_dir = COMPILE_REALDIR;
     $this->assignTemplatePath(DEVICE_TYPE_PC);
 }
Exemplo n.º 2
0
 function init()
 {
     parent::init();
     $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR;
     $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR;
     $this->assign('TPL_URLPATH_PC', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . TEMPLATE_NAME . '/');
     $this->assign('TPL_URLPATH_DEFAULT', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . DEFAULT_TEMPLATE_NAME . '/');
     $this->assign('TPL_URLPATH', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . 'admin/');
 }