Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public function node()
 {
     $nodes = Node::where('type', 1)->orderBy('sort')->get();
     return $this->view()->assign('nodes', $nodes)->display('user/node.tpl');
 }