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
				
				590 B
			
		
		
			
		
	
	
					30 lines
				
				590 B
			| 
											12 years ago
										 | <?php
 | ||
|  | /**
 | ||
|  |  * This is the template for generating a module class file.
 | ||
|  |  *
 | ||
| 
											12 years ago
										 |  * @var yii\web\View $this
 | ||
| 
											12 years ago
										 |  * @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";
 | ||
|  | ?>
 | ||
|  | 
 | ||
| 
											12 years ago
										 | namespace <?= $ns ?>;
 | ||
| 
											12 years ago
										 | 
 | ||
|  | 
 | ||
| 
											12 years ago
										 | class <?= $className ?> extends \yii\base\Module
 | ||
| 
											12 years ago
										 | {
 | ||
| 
											12 years ago
										 | 	public $controllerNamespace = '<?= $generator->getControllerNamespace() ?>';
 | ||
| 
											12 years ago
										 | 
 | ||
|  | 	public function init()
 | ||
|  | 	{
 | ||
|  | 		parent::init();
 | ||
|  | 
 | ||
|  | 		// custom initialization code goes here
 | ||
|  | 	}
 | ||
|  | }
 |