public function __construct() { parent::__construct(); $this->setInfoCart(); $this->template->set("content", $this->getContent()); $this->template->set("action", $this->url->action()); $this->template->set("title", $this->title); $this->template->set("meta_desc", $this->meta_desc); $this->template->set("meta_key", $this->meta_key); $this->template->set("index", $this->url->index()); $this->template->set("link_delivery", $this->url->delivery()); $this->template->set("link_contacts", $this->url->contacts()); $this->template->set("link_search", $this->url->search()); $this->template->set("link_cart", $this->url->cart()); $this->template->set("items", $this->categories->getAllData()); $this->template->display("main"); }
public function __construct($сheck_auth = true) { parent::__construct(); $this->url_admin = new URLAdmin(); $auth = $this->checkAuth(); if ($сheck_auth && !$auth) { $this->redirectAuth(); } $this->setMenu(); $this->template->set("auth", $auth); $this->template->set("content", $this->getContent()); $this->template->set("message", $this->message()); $this->template->set("action", $this->url_admin->actions()); $this->template->set("title", $this->title); $this->template->set("meta_desc", $this->meta_desc); $this->template->set("meta_key", $this->meta_key); $this->template->display("main"); }
public function __construct() { parent::__construct(new View(Config::DIR_TMPL)); }