_smarty->template_dir = realpath(MOBILE_TEMPLATE_REALDIR); $this->_smarty->compile_dir = realpath(MOBILE_COMPILE_REALDIR); $this->assignTemplatePath(DEVICE_TYPE_MOBILE); break; case DEVICE_TYPE_SMARTPHONE: $this->_smarty->template_dir = realpath(SMARTPHONE_TEMPLATE_REALDIR); $this->_smarty->compile_dir = realpath(SMARTPHONE_COMPILE_REALDIR); $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE); break; case DEVICE_TYPE_PC: $this->_smarty->template_dir = realpath(TEMPLATE_REALDIR); $this->_smarty->compile_dir = realpath(COMPILE_REALDIR); $this->assignTemplatePath(DEVICE_TYPE_PC); break; } if ($setPrevURL) { $this->setPrevURL(); } SC_Helper_Plugin_Ex::hook("SC_SiteView_Construct_After", array($this)); } public function setPrevURL() { $objCartSess = new SC_CartSession_Ex(); $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); } }