public function indexAction()
 {
     $sliders = new Application_Model_sliders();
     $this->view->slides = $sliders->getAllSlides();
     $textBlock = new Application_Model_TextBlocks();
     $this->view->text = $textBlock->getAllTextBlocks();
     $imageBlock = new Application_Model_ImageBlocks();
     $this->view->image = $imageBlock->getAllImageBlocks();
     $gallery = new Application_Model_Photos();
     $this->view->gallery = $gallery->getAllGalleryPhotos();
 }
 public function indexAction()
 {
     $results = $this->slides->getAllSlides();
     $this->view->list = $results;
     /*for text blocks*/
     $text_block = new Application_Model_TextBlocks();
     $this->view->text_block = $text_block->getAllTextBlocks();
     /*for image blocks*/
     $image_block = new Application_Model_ImageBlocks();
     $this->view->image_block = $image_block->getAllImageBlocks();
     /*for gallery*/
     $gallery = new Application_Model_Photos();
     $this->view->gallery = $gallery->getAllGalleryPhotos();
 }