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'); }
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'); }
function __construct() { parent::__construct(); $this->tableName = "tests"; }
public function __construct() { parent::__construct(); $this->render->defineLayout('views/layout/master.php'); }
<?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();