コード例 #1
0
 public function init()
 {
     $this->_arrParam = $this->_request->getParams();
     $this->loadTemplate(TEMPLATE_PATH . '/admin/system');
     $this->_mainAction = $this->_arrParam['module'] . '/' . $this->_arrParam['controller'] . '/index';
     $this->view->arrParam = $this->_arrParam;
     $tbl_tags = new Manager_Model_tags();
     $this->view->tags = $tbl_tags->list_tags($status = -1);
     $tbl_question = new Manager_Model_question();
     $this->view->question = $tbl_question->get_question();
 }
コード例 #2
0
ファイル: question.php プロジェクト: BGCX261/zkiwi-svn-to-git
 public function save_join($id, $cid)
 {
     $tbl_questoin = new Manager_Model_question();
     $tbl_questoin->delete_join($id);
     $db = Zend_Registry::get('connectDb');
     if (count($cid) > 0) {
         for ($i = 0; $i < count($cid); $i++) {
             $data1 = array('question_id' => $id, 'tags_id' => $cid[$i]);
             $db->insert('joiner', $data1);
         }
     }
 }
コード例 #3
0
 public function mutiAction()
 {
     $tblsection = new Manager_Model_question();
     $tblsection->delete_muti($this->_arrParam);
     $this->_redirect('manager/question');
     $this->_helper->viewRenderer->setNoRender();
 }