mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Global DOCS update: ~~~ replaced with ```
This commit is contained in:
@ -74,7 +74,7 @@ class Module extends ServiceLocator
|
||||
* the controller's fully qualified class name, and the rest of the name-value pairs
|
||||
* in the array are used to initialize the corresponding controller properties. For example,
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* [
|
||||
* 'account' => 'app\controllers\UserController',
|
||||
* 'article' => [
|
||||
@ -82,7 +82,7 @@ class Module extends ServiceLocator
|
||||
* 'pageTitle' => 'something new',
|
||||
* ],
|
||||
* ]
|
||||
* ~~~
|
||||
* ```
|
||||
*/
|
||||
public $controllerMap = [];
|
||||
/**
|
||||
@ -293,12 +293,12 @@ class Module extends ServiceLocator
|
||||
* (must start with '@') and the array values are the corresponding paths or aliases.
|
||||
* For example,
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* [
|
||||
* '@models' => '@app/models', // an existing alias
|
||||
* '@backend' => __DIR__ . '/../backend', // a directory
|
||||
* ]
|
||||
* ~~~
|
||||
* ```
|
||||
*/
|
||||
public function setAliases($aliases)
|
||||
{
|
||||
@ -414,7 +414,7 @@ class Module extends ServiceLocator
|
||||
*
|
||||
* The following is an example for registering two sub-modules:
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* [
|
||||
* 'comment' => [
|
||||
* 'class' => 'app\modules\comment\CommentModule',
|
||||
@ -422,7 +422,7 @@ class Module extends ServiceLocator
|
||||
* ],
|
||||
* 'booking' => ['class' => 'app\modules\booking\BookingModule'],
|
||||
* ]
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @param array $modules modules (id => module configuration or instances)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user