public function indexAction()
 {
     $this->view->title = "My Posts";
     $this->view->headTitle($this->view->title);
     $posts = new Application_Model_DbTable_Posts();
     $this->view->posts = $posts->fetchAll();
 }
Ejemplo n.º 2
0
 public function showAction()
 {
     // TODO Auto-generated PostController::indexAction() default action
     $posts = new Application_Model_DbTable_Posts();
     $data = $posts->fetchAll();
     $this->view->data = $data->toArray();
 }