php - How do use catchAll component in yii2 framwork? -
how use catchall component in yii2 framwork?
it gives error, when configuring described in documentation.
'catchall' => [ 'site/offline', 'h' => 2, ],
browser show message:
the page isn’t redirecting properly
could need $h2
param in controller/action signature
public function actionoffline($h) { if ($h ==2){ return $this->render('offline_h2'); } return $this->render('offline'); }
Comments
Post a Comment