mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-20 18:32:59 +08:00
23 lines
412 B
PHP
23 lines
412 B
PHP
<?php
|
|
/**
|
|
* This is the template for generating a controller class within a module.
|
|
*/
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $generator yii\gii\generators\module\Generator */
|
|
|
|
echo "<?php\n";
|
|
?>
|
|
|
|
namespace <?= $generator->getControllerNamespace() ?>;
|
|
|
|
use yii\web\Controller;
|
|
|
|
class DefaultController extends Controller
|
|
{
|
|
public function actionIndex()
|
|
{
|
|
return $this->render('index');
|
|
}
|
|
}
|