public function __construct() { AuthenticationHandler::getInstance(); $this->model_link = new ModelLink(); $this->addScript('ShopLater'); $f = new Form('search'); $this->addForm('search', $f); $f = new Form('addEntry'); $this->addForm('addUrl', $f); }
function __construct() { AuthenticationHandler::getInstance(); if (!AuthenticationHandler::$data) { Go::to(); } $this->addScript('ShopLater'); $f = new Form('search'); $this->addForm('search', $f); $f = new Form('addEntry'); $this->addForm('addUrl', $f); $m = new ModelList(); $this->addContent('user_lists', $m->retrieveByUser(AuthenticationHandler::$data['id_user'], 5)); }