예제 #1
0
 public function searchAction()
 {
     $key = $this->getRequest()->getParam('key');
     $type = $this->getRequest()->getParam('type');
     $this->view->type = $type;
     $order = $this->getRequest()->getParam('order');
     $from = $this->getRequest()->getParam('from');
     if (empty($from) && !(is_int($from) || ctype_digit($from))) {
         $from = 0;
     }
     $forumModel = new Application_Model_forum($this->registry->DB);
     $this->view->result = $forumModel->searchQuestions($key, $type, $order, $from);
     $this->view->mydetails = $this->authIdentity;
 }