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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -