Example #1
0
 function init()
 {
     parent::init();
     $this->_smarty->template_dir = TEMPLATE_REALDIR;
     $this->_smarty->compile_dir = COMPILE_REALDIR;
     $this->assignTemplatePath(DEVICE_TYPE_PC);
 }
 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/');
 }
Example #3
0
 function SC_AdminView()
 {
     parent::SC_View(false);
     $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR;
     $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR;
     $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/");
     $this->initpath();
 }
Example #4
0
 function SC_SiteView($setPrevURL = true)
 {
     parent::SC_View();
     $this->_smarty->template_dir = TEMPLATE_REALDIR;
     $this->_smarty->compile_dir = COMPILE_REALDIR;
     $this->assignTemplatePath(DEVICE_TYPE_PC);
     $this->initpath();
     if ($setPrevURL) {
         $objCartSess = new SC_CartSession_Ex();
         $objCartSess->setPrevURL($_SERVER['REQUEST_URI']);
     }
 }
 public function __construct($template_dir, $compile_dir = COMPILE_REALDIR)
 {
     parent::__construct();
     $this->_smarty->template_dir = realpath($template_dir);
     $this->_smarty->compile_dir = realpath($compile_dir);
 }
 function __construct($template_dir, $compile_dir = COMPILE_REALDIR)
 {
     parent::__construct();
     $this->_smarty->template_dir = $template_dir;
     $this->_smarty->compile_dir = $compile_dir;
 }
Example #7
0
 function SC_InstallView($template_dir, $compile_dir = COMPILE_REALDIR)
 {
     parent::SC_View(false);
     $this->_smarty->template_dir = $template_dir;
     $this->_smarty->compile_dir = $compile_dir;
 }