Commit 6f89ddb2 by Jonatan Sihombing

Initial commit

parent ecf944ea
<?php
namespace backend\modules\ubux;
/**
* ubux module definition class
*/
class Module extends \yii\base\Module
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'backend\modules\ubux\controllers';
/**
* @inheritdoc
*/
public function init()
{
parent::init();
// custom initialization code goes here
}
}
<?php
namespace backend\modules\ubux\controllers;
use yii\web\Controller;
/**
* Default controller for the `ubux` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this->render('index');
}
}
<div class="ubux-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>
...@@ -36,6 +36,6 @@ class V2Asset extends AssetBundle { ...@@ -36,6 +36,6 @@ class V2Asset extends AssetBundle {
]; ];
public $publishOptions = [ public $publishOptions = [
'forceCopy' => true 'forceCopy' => false
]; ];
} }
\ No newline at end of file
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