public function indexAction() { $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='news'", 'active = 1')); $news = new App_Model_News(); $this->view->news = $news->fetchAll(array('active=1'), array('created DESC', 'order')); }
public function indexAction() { $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='careers'", 'active = 1')); $jobs = new App_Model_Careers(); $this->view->jobs = $jobs->fetchAll('active=1', 'order'); }
public function indexAction() { $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='links'", 'active = 1')); $links = new App_Model_Links(); $this->view->links = $links->fetchAll('active=1', 'order'); }
public function indexAction() { $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='faqs'", 'active = 1')); $faqs = new App_Model_Faqs(); $this->view->faqs = $faqs->fetchAll('active=1', 'order'); }
public function indexAction() { $name = $this->getRequest()->getParam('title'); $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='" . $name . "'", 'active = 1')); if (!isset($this->view->model->id)) { $this->_redirect('/error/missing/title/' . $title); //$this->view->model = $model->fetchRow('id = 2'); } }
public function thankyouAction() { $model = new App_Model_Page(); $this->view->model = $model->fetchRow(array("name ='contact_thanx'")); }