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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -