Example #1
0
 public function execute(CircuitController $c)
 {
     $r = $c->getRequest();
     $allblogs = $c->getModel('Landing.Land');
     $newblog = $allblogs->getnewBlog();
     $r->set('newblog', $newblog);
     //获取群组最新5片博文
     $groups = $allblogs->getGroupList();
     $r->set('group_l', $groups);
 }
Example #2
0
 function execute(CircuitController $c)
 {
     $userid = $c->getRequest()->get('userid');
     $c->getModel('Default.Location')->load($userid);
     return VIEW_SUCCESS;
 }