Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Smarty_Views {
- protected $_Instance;
- protected $CSS_Dir;
- public function __construct($TemplateDir, $TemplateName){
- $this->_Instance = new Smarty;
- $this->_Instance->compile_dir = "./".$TemplateDir."/".$TemplateName."/Compiler";
- $this->_Instance->template_dir = "./".$TemplateDir."/".$TemplateName."/HTML";
- $this->CSS_Dir = "./".$TemplateDir."/".$TemplateName."/CSS";
- }
- public function Register($Page){
- $this->_Instance->assign("Location", './'.$Page.'/FormID/192');
- $this->_Instance->assign("Type","POST");
- $this->_Instance->assign("Input_1","username");
- $this->_Instance->assign("Default_Value_1","Username");
- $this->_Instance->assign("Submit_Name","Test");
- $this->_Instance->assign("Submit_Value","Submit Here");
- }
- public function Display_Page($PageName){
- if (!method_exists($this,$PageName)){
- $this->_Instance->assign("css",$this->CSS_Dir."/css404.css");
- $this->_Instance->display("404.html");
- exit;
- }
- call_user_func(array($this, $PageName),$PageName);
- $this->_Instance->display($PageName.".tpl");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement