public function node($request, $response, $args) { $msg = DbConfig::get('user-node'); $user = Auth::getUser(); $nodes = Node::where('type', 1)->orderBy('sort')->get(); return $this->view()->assign('nodes', $nodes)->assign('user', $user)->assign('msg', $msg)->display('user/node.tpl'); }
public function node($request, $response, $args) { $nodes = Node::where('type', 1)->orderBy('sort')->get(); $res['ret'] = 1; $res['msg'] = "ok"; $res['data'] = $nodes; return $this->echoJson($response, $res); }
public function node() { $nodes = Node::where('type', 1)->orderBy('sort')->get(); return $this->view()->assign('nodes', $nodes)->display('user/node.tpl'); }