Example #1
0
 public static function Error($code)
 {
     $tpl = new Template();
     if ($code == 404) {
         self::$IndexTPL->SetParam('Content', $tpl->Fetch('templates/main/error404.tpl'));
     }
 }
Example #2
0
 public static function GetPanel()
 {
     $tpl = new Template();
     $pages = Pages_Model::GetPages();
     $tpl->SetParam('pages', $pages);
     return $tpl->Fetch('templates/pages/pages-panel.tpl');
 }
Example #3
0
 public static function GetDeletePage($id, $assocArr = null)
 {
     $tpl = new Template();
     $row = Topmenu_Model::GetMenuItemById($id);
     $tpl->SetParams($row);
     $tpl->SetParams($assocArr);
     return $tpl->Fetch('templates/topmenu/item-delete.tpl');
 }
Example #4
0
 public static function GetOkPage()
 {
     $tpl = new Template();
     return $tpl->Fetch('templates/cart/succes.tpl');
 }
Example #5
0
 public static function GetMainPage()
 {
     $tpl = new Template();
     return $tpl->Fetch('templates/main/main.tpl');
 }
Example #6
0
 public static function GetFeedbackPage($assocArr = null)
 {
     $tpl = new Template();
     return $tpl->Fetch('templates/users/feedback.tpl');
 }
Example #7
0
 public static function GetProductPage($arr = null)
 {
     $tpl = new Template();
     $tpl->SetParam('product', $arr);
     return $tpl->Fetch('templates/products/product-detail.tpl');
 }
Example #8
0
 protected function Paginator()
 {
     $template = new Template();
     $template->paginator = parent::Paginator();
     return $template->Fetch('nav');
 }