# Controller
```
protected $news_model;
protected $newscate_model;
public function __construct()
{
parent::__construct();
$this->newscate_model = new Newscates();
}
public function index()
{
$data = $this->newscate_model;
$list = $data -> tree();
$this->assign([
'list' => $list,
]);
return $this->fetch();
}
```