function tree() { $this->swoole->tpl->assign("tree", json_encode(App\Content::getTree($this->project_id))); $this->swoole->tpl->display("wiki/tree.html"); }