示例#1
0
 public function indexAction()
 {
     $_data = new Common_Data();
     $feed = $_data->getFeed();
     print_r($feed);
     $this->loadLayout('layout-simple');
     $this->render('index');
 }
示例#2
0
 public function viewAction()
 {
     $_entry = new Common_Data();
     $id = '49fb2164-969a-08f4-d5f3-3ffa96a4d91a';
     $entry = $_entry->getEntry($id);
     print_r($entry);
     //        $this->loadLayout('layout/simple');
     //        $this->render('entry/view', null, true);
     $this->render('layout/simple', null, true);
 }
示例#3
0
文件: Datax.php 项目: eryx/labs
 public static function getFeed($query)
 {
     $limit = 10;
     $where = array();
     $order = array();
     if (isset($query->limit)) {
         $limit = $query->limit;
     }
     if (isset($query->order)) {
         $order = explode(",", $query->order);
     }
     $_datax = new Common_Data($query->type);
     $items = $_datax->getFeed($where, $order, $limit);
     return $items;
 }