示例#1
0
 /**
  * indexAction
  *
  * @return  string
  *
  * @throws Exception
  */
 public function indexAction()
 {
     //拿出資料
     $model = new Model_Apple();
     $apples = $model->getApples();
     //RENDER
     return $this->render('apple/index', array('apples' => $apples));
 }
示例#2
0
 public function indexAction()
 {
     $content = $this->input->get('content', 'Pirates');
     $model = new Model_Apple();
     $apples = $model->getApples();
     Helper::show($apples);
     return $this->render('flower/default', array('content' => $content));
 }