/** * indexAction * * @return string * * @throws Exception */ public function indexAction() { //拿出資料 $model = new Model_Apple(); $apples = $model->getApples(); //RENDER return $this->render('apple/index', array('apples' => $apples)); }
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)); }