You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
591 B
30 lines
591 B
11 years ago
|
<?php
|
||
|
/**
|
||
|
* This is the template for generating a module class file.
|
||
|
*
|
||
|
* @var yii\base\View $this
|
||
|
* @var yii\gii\generators\module\Generator $generator
|
||
|
*/
|
||
|
$className = $generator->moduleClass;
|
||
|
$pos = strrpos($className, '\\');
|
||
|
$ns = ltrim(substr($className, 0, $pos), '\\');
|
||
|
$className = substr($className, $pos + 1);
|
||
|
|
||
|
echo "<?php\n";
|
||
|
?>
|
||
|
|
||
11 years ago
|
namespace <?= $ns ?>;
|
||
11 years ago
|
|
||
|
|
||
11 years ago
|
class <?= $className ?> extends \yii\base\Module
|
||
11 years ago
|
{
|
||
11 years ago
|
public $controllerNamespace = '<?= $generator->getControllerNamespace() ?>';
|
||
11 years ago
|
|
||
|
public function init()
|
||
|
{
|
||
|
parent::init();
|
||
|
|
||
|
// custom initialization code goes here
|
||
|
}
|
||
|
}
|