예제 #1
0
 public function createforumAction()
 {
     if ($this->auth->hasIdentity()) {
         $createforum = new Application_Model_forum($this->registry['DB']);
         $name = $this->getRequest()->getParam('name');
         $category = $this->getRequest()->getParam('category');
         $subcategory = $this->getRequest()->getParam('subcategory');
         $this->view->results = $createforum->createForum($name, $category, $subcategory);
     }
 }