init Area full CRUD
This commit is contained in:
23
widgets/Tree.php
Normal file
23
widgets/Tree.php
Normal 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
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user