Example #1
0
 function browseAction()
 {
     $catalogGuid = $this->_getParam('guid') ? $this->_getParam('guid') : '';
     $content = $this->_getParam('content') ? $this->_getParam('content') : '';
     $bbCoded = " ";
     if ($content != "") {
         //	Convert BBCode Tags to HTML Tags
         $bbCoded = Pandamp_Lib_Bbcode::parseBBCode($content);
         $aResult['success'] = true;
         $aResult['data'] = $bbCoded;
         echo Zend_Json::encode($aResult);
         die;
     }
     //	Write ControlPanel
     $notShown = array(9, 10, 11);
     $bbCodeCP = Pandamp_Lib_Bbcode::writeBbCode("tanggapan", "theField", $notShown);
     $this->view->bbCodeCP = $bbCodeCP;
     $this->view->catalogGuid = $catalogGuid;
 }
 function browseAction()
 {
     $catalogGuid = $this->_getParam('guid') ? $this->_getParam('guid') : '';
     $page = $this->_getParam('page') ? $this->_getParam('page') : '';
     $content = $this->_getParam('content') ? $this->_getParam('content') : '';
     $bbCoded = " ";
     if ($content != "") {
         //	Convert BBCode Tags to HTML Tags
         $bbCoded = Pandamp_Lib_Bbcode::parseBBCode($content);
         $aResult['success'] = true;
         $aResult['data'] = $bbCoded;
         echo Zend_Json::encode($aResult);
         die;
     }
     //	Write ControlPanel
     $notShown = array(9, 10, 11);
     $bbCodeCP = Pandamp_Lib_Bbcode::writeBbCode("tanggapan", "theField", $notShown);
     $this->view->bbCodeCP = $bbCodeCP;
     $sReturn = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
     $sReturn = base64_encode($sReturn);
     $identity = Pandamp_Application::getResource('identity');
     $loginUrl = $identity->loginUrl;
     $signUp = $identity->signUp;
     $this->view->loginUrl = $loginUrl . '?returnTo=' . $sReturn;
     $this->view->signUp = $signUp;
     //$loginUrl = $identity->loginUrl;
     //$signUp = $identity->signUp;
     //$this->view->loginUrl = ROOT_URL.'/helper/synclogin/generate/?returnTo='.$sReturn;
     //$this->view->signUp = $signUp;
     $this->view->catalogGuid = $catalogGuid;
     $this->view->page = $page;
 }