예제 #1
0
 public function __init()
 {
     parent::__init();
     $this->headerMenu();
     $this->getCurrentCatid();
     $this->getCategoryList();
     $this->sidebarCategory();
 }
 public function indexAction()
 {
     $this->view = parent::loadView();
     $data = ['page_title' => 'Domyślny kontroler'];
     $this->view->load('header', $data);
     $this->view->load('welcome');
     $this->view->load('footer');
 }
예제 #3
0
 public function __init()
 {
     parent::__init();
     if ($this->checkLogin() === true) {
         $this->login = true;
     }
     $this->tree();
 }
 public function indexAction()
 {
     $this->view = parent::loadView();
     $data = ['page_title' => 'Rejestracja'];
     $this->view->load('header', $data);
     $this->view->load('register');
     $this->view->load('footer');
 }
예제 #5
0
 function __construct()
 {
     parent::__construct();
     $this->tableName = "tests";
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->render->defineLayout('views/layout/master.php');
 }
예제 #7
0
<?php

if (defined("DEBUG") && DEBUG == true) {
    ini_set('display_errors', 1);
}
/** classe de autoload */
require "help/auto_load.class.php";
use Core\Controller\Controller, Core\Help\AutoLoad;
// Definindo caminho root para o autoload
AutoLoad::setRootDir(DIR_BASE);
// Registrando o auto load
spl_autoload_register(array('Core\\Help\\AutoLoad', 'registerLoad'));
require DIR_BASE . "/app-include/app-menu.php";
require DIR_BASE . "/app-include/app-functions.php";
$front = new Controller();
$front->run();