public function homeAction() { $this->view->aboutMe = $this->_contacts->getAboutMeByID(); $this->view->whatIDo = $this->_contacts->getWhatIDoByID(); $this->view->articles = $this->_articles->getAllArticles(); $this->view->contacts = $this->_contacts->getContactsByID(); $this->view->serviceCategories = $this->_serviceCategories->getAllServiceCategories(); $this->view->services = $this->_services->getAllServices(); $this->view->testimonials = $this->_testimonials->getAllTestimonials(); $this->view->footer = $this->_contacts->getFooterByID(); }
public function deleteTestimonialAction() { $testimonialID = $this->_getParam('testimonialID', 0); $this->_testimonials->deleteTestimonial($testimonialID); unlink('img/testimonials/' . $testimonialID . '.jpg'); $this->_redirect('/enlighten/panel/testimonials'); }