Commit ce4f37a1 by Qiang Xue

doc fix.

parent 71b8dfdb
<?php <?php
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar; use yii\bootstrap\NavBar;
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\Menu; use yii\widgets\Menu;
......
...@@ -281,7 +281,7 @@ class Controller extends Component ...@@ -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 * - 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; * 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 * - 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`. * 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 ...@@ -69,7 +69,7 @@ class Module extends \yii\base\Module
$this->logTarget = null; $this->logTarget = null;
if ($this->checkAccess($action)) { if ($this->checkAccess($action)) {
return true; return parent::beforeAction($action);
} elseif ($action->id === 'toolbar') { } elseif ($action->id === 'toolbar') {
return false; return false;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment