Commit 4173941c authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили модуль cases

parent ff06386f
......@@ -32,6 +32,7 @@ return [
'rbac' => ['class' => 'common\modules\rbac\rbac'],
'unisender' => ['class' => 'common\modules\unisender\Module'],
'analyticsSchool' => ['class' => 'common\modules\analyticsSchool\Module',],
'cases' => ['class' => 'common\modules\cases\Module'],
],
'components' => [
'session' => [
......
<?php
namespace common\modules\cases;
/**
* Cases module definition class
*/
class Module extends \yii\base\Module
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'common\modules\cases\controllers';
/**
* @inheritdoc
*/
public function init()
{
parent::init();
// custom initialization code goes here
}
}
<?php
namespace common\modules\cases\controllers;
use yii\web\Controller;
/**
* Default controller for the `Cases` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this->render('index');
}
}
<div class="Cases-default-index">
<h1><?= $this->context->action->uniqueId ?></h1>
<p>
This is the view content for action "<?= $this->context->action->id ?>".
The action belongs to the controller "<?= get_class($this->context) ?>"
in the "<?= $this->context->module->id ?>" module.
</p>
<p>
You may customize this page by editing the following file:<br>
<code><?= __FILE__ ?></code>
</p>
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment