mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-01 06:59:29 +08:00
doc fix.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
use yii\bootstrap\Nav;
|
||||
use yii\bootstrap\NavBar;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\Menu;
|
||||
|
||||
@@ -281,7 +281,7 @@ class Controller extends Component
|
||||
* - an absolute path (e.g. "/main"): the layout name starts with a slash. The actual layout file will be
|
||||
* looked for under the [[Application::layoutPath|layout path]] of the application;
|
||||
* - a relative path (e.g. "main"): the actual layout layout file will be looked for under the
|
||||
* [[Module::viewPath|view path]] of the context module.
|
||||
* [[Module::layoutPath|layout path]] of the context module.
|
||||
*
|
||||
* If the layout name does not contain a file extension, it will use the default one `.php`.
|
||||
*
|
||||
|
||||
@@ -69,7 +69,7 @@ class Module extends \yii\base\Module
|
||||
$this->logTarget = null;
|
||||
|
||||
if ($this->checkAccess($action)) {
|
||||
return true;
|
||||
return parent::beforeAction($action);
|
||||
} elseif ($action->id === 'toolbar') {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user