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

24
widgets/TreeSub.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace app\widgets;
use yii\base\Widget;
class TreeSub extends Widget {
public $pid;
public $model;
public function init() {
parent::init();
}
public function run() {
return $this->render("tree-sub", [
"lists" => $this->model->find()->andWhere(['pid' => $this->pid])->all(),
"model" => $this->model
]);
}
}