dev-master
9999999-devoffline action
MIT
The Requires
The Development Requires
by lichunqiang
extension yii2 offline
1.0.0
1.0.0.0offline action
MIT
The Requires
by lichunqiang
extension yii2 offline
offline action
offline action, (*1)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist light/yii2-offline "*"
or add, (*5)
"light/yii2-offline": "*"
to the require section of your composer.json
file., (*6)
Once the extension is installed, simply use it in your code by :, (*7)
public function actions() { return [ 'offline' => [ 'class' => 'light\Offline\OfflineAction', 'title' => '维护中', 'description' => '服务器正在维护中, <br /> 请稍后访问', ] ]; }
Your config
file:, (*8)
... 'catchAll' => ['site/offline'] ...
, (*9)
offline action
MIT
extension yii2 offline
offline action
MIT
extension yii2 offline