init Area full CRUD

This commit is contained in:
2020-10-09 14:19:15 +07:00
parent 5538d74b1b
commit 70db83d3ab
15 changed files with 318 additions and 144 deletions

23
widgets/Tree.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
namespace app\widgets;
use yii\base\Widget;
class Tree extends Widget {
public $model;
public function init() {
parent::init();
}
public function run() {
return $this->render("tree", [
"root" => $this->model->findOne(1),
"model" => $this->model
]);
}
}