Example #1
0
 public static function GetProfilePage($assocArr = null)
 {
     $tpl = new Template();
     $tpl->SetParams($assocArr);
     $userInfo = Users_Model::GetUserById($_SESSION['user']['id']);
     $tpl->SetParams($userInfo);
     return $tpl->Fetch('templates/users/user-profile.tpl');
 }
Example #2
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 #3
0
 public static function GetPageView($id)
 {
     $tpl = new Template();
     $rows = Pages_Model::GetPageById($id);
     $tpl->SetParams($rows);
     return $tpl->Fetch('templates/pages/page-view.tpl');
 }