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.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							607 B
						
					
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							607 B
						
					
					
				| <?php | |
|  | |
| use yii\helpers\Inflector; | |
|  | |
| /** | |
|  * This is the template for generating a controller class file. | |
|  * | |
|  * @var yii\base\View $this | |
|  * @var yii\gii\generators\controller\Generator $generator | |
|  */ | |
|  | |
| echo "<?php\n"; | |
| ?> | |
|  | |
| <?php if (!empty($generator->ns)): ?> | |
| namespace <?= $generator->ns ?>; | |
| <?php endif; ?> | |
|  | |
| class <?= $generator->getControllerClass() ?> extends <?= '\\' . trim($generator->baseClass, '\\') . "\n" ?> | |
| { | |
| <?php foreach($generator->getActionIDs() as $action): ?> | |
| 	public function action<?= Inflector::id2camel($action) ?>() | |
| 	{ | |
| 		return $this->render('<?= $action ?>'); | |
| 	} | |
|  | |
| <?php endforeach; ?> | |
| }
 | |
| 
 |