コード例 #1
0
ファイル: modules_class.php プロジェクト: Tatiway/online-shop
 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");
 }
コード例 #2
0
 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");
 }
コード例 #3
0
ファイル: module_class.php プロジェクト: trukfit/htdocs
 public function __construct()
 {
     parent::__construct(new View(Config::DIR_TMPL));
 }