/** * Initialize toastr.js message on beforeRender * @param string $view view * @return boolean render success status */ public function beforeRender($view) { if (UserWeb::instance()->hasMessage()) { $this->renderJS([], array('message' => array('status' => UserWeb::instance()->getMessageStatus(), 'content' => UserWeb::instance()->getMessageContent()))); } $this->renderJS(['authenticationURL' => $this->createUrl('/parser/authenticate/ask')], []); return parent::beforeRender($view); }