예제 #1
0
 public function indexAction()
 {
     //Pega as apresentações que estão no banco.
     $dbTablePresentation = new Application_Model_DbTable_Presentation();
     $sqlPresentation = $dbTablePresentation->getText();
     $this->view->presentation = $sqlPresentation;
     //pega as noticias do banco.
     $dbTableNews = new Application_Model_DbTable_News();
     $sqlNews = $dbTableNews->getText();
     $this->view->news = $sqlNews;
     $dbTableText = new Application_Model_DbTable_Text();
     $sqlBlock = $dbTableText->getText();
     $this->view->text = $sqlBlock;
     $dbTableBlock = new Application_Model_DbTable_Block();
     $sqlBlock = $dbTableBlock->getText();
     $this->view->block = $sqlBlock;
 }