public function __construct(UserModel $model, Login $login, HtmlTemplate $htmlTemplate, JsonTemplate $jsonTemplate) { parent::__construct($model); $this->data = array_merge($this->data, array('login' => $login->logged, 'userName' => $login->data['user_name'])); $this->htmlTemplate = $htmlTemplate; $this->jsonTemplate = $jsonTemplate; }
public function __construct(LoginModel $model, Login $login, HtmlTemplate $htmlTemplate) { parent::__construct($model); $this->data = array_merge($this->data, array('login' => $login->logged, 'userName' => $login->data['user_name'])); $this->data['loginError'] = false; $this->template = $htmlTemplate; $this->template->loadHtml('Login'); $this->template->loadCss('css/login.css'); }
public function __construct(FOOModel $model, FOOTemplate $htmlTemplate) { parent::__construct($model); $this->htmlTemplate = $htmlTemplate; }