/** * Error action */ public function actionError() { if (null === ($_error = Pii::currentError())) { parent::actionError(); } else { if (Pii::ajaxRequest()) { echo $_error['message']; return; } if ($_error['code'] == 404) { $this->layout = 'error'; } $this->render('error', $_error); } }
/** * Error action */ public function actionError() { if (null !== ($_error = Pii::currentError())) { if (Pii::ajaxRequest()) { echo $_error['message']; return; } $this->render('error', $_error); } }