當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Controller_Action::postDispatch方法代碼示例

本文整理匯總了PHP中Zend_Controller_Action::postDispatch方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Controller_Action::postDispatch方法的具體用法?PHP Zend_Controller_Action::postDispatch怎麽用?PHP Zend_Controller_Action::postDispatch使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Controller_Action的用法示例。


在下文中一共展示了Zend_Controller_Action::postDispatch方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: preDispatch

 public function preDispatch()
 {
     parent::postDispatch();
     $auth = Zend_Auth::getInstance();
     if (!$auth->hasIdentity()) {
         echo "não tem acesso";
         $this->redirect('/auth');
     }
 }
開發者ID:vinicamel,項目名稱:catalogo-secadi,代碼行數:9,代碼來源:TextController.php

示例2: postDispatch

 /**
  * @inheritdoc
  */
 public function postDispatch()
 {
     parent::postDispatch();
     // Render view if it was not rendered before
     if (!$this->view->isRendered()) {
         $actionName = $this->getRequest()->getActionName();
         $this->render($actionName);
     }
 }
開發者ID:cipherpols,項目名稱:cze,代碼行數:12,代碼來源:Controller.php

示例3: postDispatch

 /**
  * post dispatch method
  *
  * @author          Eddie Jaoude
  * @param           void
  * @return           void
  *
  */
 public function postDispatch()
 {
     parent::postDispatch();
     if (empty($this->view->alert)) {
         $this->view->alert = $this->_flashMessenger->getMessages();
     } else {
         if (!is_array($this->view->alert)) {
             throw new Exception('Alert string $this->view->alert must be an array');
         }
     }
 }
開發者ID:rohankoid,項目名稱:Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD-,代碼行數:19,代碼來源:BaseController.php

示例4: postDispatch

 /**
  * Reescreve o método postDispatch() que é responsável 
  * por executar uma ação após a execução de um método
  * @access public
  * @param void
  * @return void
  */
 public function postDispatch()
 {
     if ($this->_msg->hasMessages()) {
         $this->view->message = implode("<br />", $this->_msg->getMessages());
     }
     if ($this->_type->hasMessages()) {
         $this->view->message_type = implode("<br />", $this->_type->getMessages());
     }
     parent::postDispatch();
     // chama o método pai
 }
開發者ID:hackultura,項目名稱:novosalic,代碼行數:18,代碼來源:GenericController.php

示例5: preDispatch

 public function preDispatch()
 {
     parent::postDispatch();
     $auth = Zend_Auth::getInstance();
     if (!$auth->hasIdentity()) {
         session_start();
         $_SESSION['acess'] = '0';
     } else {
         $_SESSION['acess'] = '1';
     }
 }
開發者ID:vinicamel,項目名稱:catalogo-secadi,代碼行數:11,代碼來源:IndexController.php

示例6: postDispatch

 /**
  * Post-dispatch routines
  * Asignar variables de entorno
  *
  * @return void
  */
 public function postDispatch()
 {
     parent::postDispatch();
     $this->view->messages = $this->_helper->flashMessenger->getMessages();
     $this->view->yosonVars = $this->_yosonVars;
     //        if (APPLICATION_ENV != 'production') {
     //            $sep = sprintf('[%s]', strtoupper(substr(APPLICATION_ENV, 0, 3)));
     //            $titleStack = $this->view->headTitle()->getContainer()->getValue();
     //            if (!is_array($titleStack) || (is_array($titleStack) && isset($titleStack[0]) && $titleStack[0] != $sep) ){
     //                $this->view->headTitle()->prepend($sep);
     //            }
     //        }
 }
開發者ID:josmel,項目名稱:adminwap,代碼行數:19,代碼來源:Action.php

示例7: postDispatch

 /**
  * Erstellt die komplette Ausgabe der Actions als JSON
  */
 public function postDispatch()
 {
     switch ($this->responseType) {
         // use zend view
         case self::RESPONSE_TYPE_HTML_VIEW:
             $this->setContentTypeValue('text/html');
             break;
             // return as javascript variable
         // return as javascript variable
         case self::RESPONSE_TYPE_JS_VAR:
             $responseString = sprintf("var %s = %s;", isset($this->responseTypeParams['name']) ? $this->responseTypeParams['name'] : 'CMSDATA', \Zend_Json::encode($this->responseData));
             $this->buildResponse($responseString, 'application/javascript; charset=utf-8');
             break;
             // return as json
         // return as json
         case self::RESPONSE_TYPE_JSON:
         default:
             $json = \Zend_Json::encode($this->responseData);
             $this->buildResponse($json, $this->contentTypeValue);
             break;
     }
     parent::postDispatch();
 }
開發者ID:rukzuk,項目名稱:rukzuk,代碼行數:26,代碼來源:Action.php

示例8: postDispatch

 public function postDispatch()
 {
     if (!$this->getLayout()->isLoaded() and $this->getRequest()->isDispatched()) {
         $this->_forward('noroute');
     }
     parent::postDispatch();
 }
開發者ID:bklein01,項目名稱:siberian_cms_2,代碼行數:7,代碼來源:Default.php

示例9: postDispatch

 /**
  * Post-dispatch routines.
  *
  * Common usages for postDispatch() include rendering content in a site wide
  * template, link url correction, setting headers, etc.
  */
 public function postDispatch()
 {
     parent::postDispatch();
     $this->view->addHelperPath(BASE_PATH . '/core/views/helpers', 'Zend_View_Helper_');
 }
開發者ID:josephsnyder,項目名稱:Midas,代碼行數:11,代碼來源:GlobalController.php

示例10: postDispatch

 /**
  * Setzt alle Daten des Layouts der Session
  */
 public function postDispatch()
 {
     parent::postDispatch();
     $this->view->messages = $this->_helper->FlashMessenger->getMessages();
 }
開發者ID:dragonprojects,項目名稱:dragonjsonserver,代碼行數:8,代碼來源:Abstract.php

示例11: postDispatch

 /**
  * Post-dispatch routines
  * Asignar variables de entorno
  *
  * @return void
  */
 public function postDispatch()
 {
     parent::postDispatch();
     //$this->view->messages = $this->_helper->flashMessenger->getMessages();
     $this->view->yosonVars = $this->_yosonVars;
 }
開發者ID:josmel,項目名稱:HosPot,代碼行數:12,代碼來源:Action.php

示例12: postDispatch

 public function postDispatch()
 {
     parent::postDispatch();
     Centurion_Signal::factory('post_dispatch')->send($this);
 }
開發者ID:netconstructor,項目名稱:Centurion,代碼行數:5,代碼來源:Action.php

示例13: postDispatch

 /**
  * 	postDispatch
  *
  *	executes once a controller action has completed, prior to the view
  *	renderer displaying the view.
  */
 public function postDispatch()
 {
     $this->setMessages();
     parent::postDispatch();
     $this->_flashMessenger->addMessage("");
 }
開發者ID:jaakkop,項目名稱:site,代碼行數:12,代碼來源:CustomController.php

示例14: postDispatch

 /**
  * postDispatch
  * @author Thomas Schedler <tsh@massiveart.com>
  * @version 1.0
  */
 public function postDispatch()
 {
     if ($this->blnPostDispatch == true) {
         // trigger client specific dispatch helper
         if ($this->core->sysConfig->helpers->client->dispatcher === 'enabled') {
             ClientHelper::get('Dispatcher')->postDispatch($this);
         }
         if (function_exists('tidy_parse_string') && $this->blnCachingOutput == false && $this->getResponse()->getBody() != '') {
             /**
              * Tidy is a binding for the Tidy HTML clean and repair utility which allows 
              * you to not only clean and otherwise manipulate HTML documents, 
              * but also traverse the document tree. 
              */
             $arrConfig = array('indent' => TRUE, 'output-xhtml' => TRUE, 'wrap' => 200);
             $objTidy = tidy_parse_string($this->getResponse()->getBody(), $arrConfig, $this->core->sysConfig->encoding->db);
             $objTidy->cleanRepair();
             $this->getResponse()->setBody($objTidy);
         }
         if (isset($this->objCache) && $this->objCache instanceof Zend_Cache_Frontend_Output) {
             if ($this->blnCachingStart === true) {
                 $response = $this->getResponse()->getBody();
                 $this->getResponse()->setBody(str_replace("<head>", "<head>\r\n      <!-- This is a ZOOLU cached page (" . date('d.m.Y H:i:s') . ") -->", $response));
                 $this->getResponse()->outputBody();
                 $arrTags = array();
                 if ($this->objPage->getIsStartElement(false) == true) {
                     $arrTags[] = 'Start' . ucfirst($this->objPage->getType());
                 }
                 $arrTags[] = ucfirst($this->objPage->getType()) . 'Type_' . $this->objPage->getTypeId();
                 $arrTags[] = ucfirst($this->objPage->getType()) . 'Id_' . $this->objPage->getPageId() . '_' . $this->objPage->getLanguageId();
                 $this->core->logger->debug(var_export($arrTags, true));
                 $this->objCache->end($arrTags);
                 $this->core->logger->debug('... end caching!');
                 exit;
             }
         }
         parent::postDispatch();
     }
 }
開發者ID:BGCX261,項目名稱:zoolu-svn-to-git,代碼行數:43,代碼來源:IndexController.php

示例15: addAction

 public function addAction()
 {
     parent::postDispatch();
     $auth = Zend_Auth::getInstance();
     if (!$auth->hasIdentity()) {
         $this->redirect('/auth');
     }
     $adapter = new Zend_File_Transfer_Adapter_Http();
     $dbTable = new Application_Model_DbTable_Block();
     $lastText = $dbTable->getTextById($_GET['id']);
     $this->view->block = $lastText;
 }
開發者ID:vinicamel,項目名稱:catalogo-secadi,代碼行數:12,代碼來源:BlockController.php


注:本文中的Zend_Controller_Action::postDispatch方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。