当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_View::addHelperPath方法代码示例

本文整理汇总了PHP中Zend_View::addHelperPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_View::addHelperPath方法的具体用法?PHP Zend_View::addHelperPath怎么用?PHP Zend_View::addHelperPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_View的用法示例。


在下文中一共展示了Zend_View::addHelperPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 protected function setUp()
 {
     $this->_picker = new Zle_Form_Element_DatePicker('foo');
     $this->_view = new Zend_View();
     $this->_view->addHelperPath(realpath(dirname(__FILE__) . '/../../../../library/Zle/View/Helper'), 'Zle_View_Helper');
     ZendX_JQuery::enableView($this->_view);
 }
开发者ID:JellyBellyDev,项目名称:zle,代码行数:7,代码来源:DatePickerTest.php

示例2: _initView

 public function _initView()
 {
     // Initialize view
     $view = new Zend_View();
     // Setup Helper Paths
     $view->setHelperPath(SM_LIB . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . 'Helper', 'Smallunch_lib_View_Helper');
     // Add Global Helper path (typically application/helpers
     $view->addHelperPath(GLOBAL_HELPER_DIR . DIRECTORY_SEPARATOR . 'View');
     // add per application helper path (typically application/(backend, frontend)/helpers
     $view->addHelperPath(APPLICATION_DIRECTORY . DIRECTORY_SEPARATOR . 'Helper' . DIRECTORY_SEPARATOR . 'View');
     // Setup layout
     if (isset($this->config->layout->doctype)) {
         $view->doctype($this->config->layout->doctype);
     }
     if (isset($this->config->default->title)) {
         $view->headTitle($this->config->default->title);
     }
     if (isset($this->config->default->meta_keywords)) {
         $view->headMeta($this->config->default->meta_keywords, 'keywords');
     }
     if (isset($this->config->default->meta_description)) {
         $view->headMeta($this->config->default->meta_description, 'description');
     }
     if (isset($this->config->layout->charset)) {
         $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=' . $this->config->layout->charset);
     }
     if (isset($this->config->layout->content_language)) {
         $view->headMeta()->appendHttpEquiv('Content-Language', $this->config->layout->content_language);
     }
     // Add it to the ViewRenderer
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
     // Return it, so that it can be stored by the bootstrap
     return $view;
 }
开发者ID:jeremymoorecom,项目名称:Smallunch,代码行数:35,代码来源:Bootstrap.php

示例3: _initView

 protected function _initView()
 {
     $view = new Zend_View();
     $view->doctype('XHTML1_STRICT');
     $view->headTitle('Truffes');
     $view->headLink()->appendStylesheet('/css/main.css');
     $view->addHelperPath(APPLICATION_PATH . '/helpers', 'View_Helper');
     $view->addHelperPath(APPLICATION_PATH . '/modules/frontend/views/helpers', 'View_Helper');
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
     return $view;
 }
开发者ID:esandre,项目名称:CoeurDeTruffes,代码行数:12,代码来源:Bootstrap.php

示例4: _initHelper

 protected function _initHelper()
 {
     $lib_path = APPLICATION_PATH . "/lib";
     $view = new Zend_View();
     $view->addHelperPath("Cible/View/Helper", "Cible_View_Helper");
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addBasePath("{$lib_path}/Cible/View");
     $view->addBasePath("{$lib_path}/ZendX/JQuery/View");
     $view->addBasePath("{$lib_path}/Cible/Validate");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
开发者ID:anunay,项目名称:stentors,代码行数:13,代码来源:Cron.php

示例5: _initView

 protected function _initView()
 {
     $view = new Zend_View();
     $view->doctype('XHTML1_TRANSITIONAL');
     $view->headMeta()->appendHttpEquiv('Content-type', 'text/html;charset=utf-8');
     $view->headTitle('· Intermodels · Un deseo...hecho realidad · Modelos · Gogós · Azafatas · Agencia · Barcelona ·')->setSeparator(' - ');
     $view->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js');
     $view->addHelperPath('Neo/View/Helper', 'Neo_View_Helper');
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
     return $view;
 }
开发者ID:Neozeratul,项目名称:Intermodels,代码行数:13,代码来源:Bootstrap.php

示例6: _initView

 protected function _initView()
 {
     $path = APPLICATION_PATH . '/modules/' . MODULE_NAME . '/views';
     $view = new Zend_View();
     $view->setUseStreamWrapper(true);
     $view->setEncoding('UTF-8');
     $view->addScriptPath($path . '/partials');
     $view->addScriptPath($path . '/scripts');
     $view->addHelperPath(APPLICATION_PATH . '/../library/Bbx/View/Helper', 'Bbx_View_Helper');
     $view->addHelperPath($path . '/helpers', 'ViewHelper');
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
     Zend_Registry::set('view', $view);
 }
开发者ID:rdallasgray,项目名称:bbx,代码行数:14,代码来源:ContextDependencies.php

示例7: getView

 /**
  * Get view
  * 
  * @return Zend_View 
  */
 protected function getView()
 {
     if (!isset(self::$renderView)) {
         //init view
         self::$renderView = new Zend_View();
         self::$renderView->setScriptPath(APPLICATION_PATH . "/modules/teaser/views/scripts/templates/");
         self::$renderView->addHelperPath(APPLICATION_PATH . "/modules/teaser/views/helpers/", "Teaser_View_Helper");
         $mvcView = Zend_Layout::getMvcInstance()->getView();
         if (isset($mvcView->theme)) {
             self::$renderView->addScriptPath(APPLICATION_PATH . '/../themes/' . $mvcView->theme . '/views/teaser/templates/');
         }
     }
     return self::$renderView;
 }
开发者ID:bokultis,项目名称:kardiomedika,代码行数:19,代码来源:RenderTeaser2.php

示例8: _initViewHelpers

 protected function _initViewHelpers()
 {
     $view = new Zend_View();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->jQuery()->addStylesheet($view->baseUrl . '/js/jquery/css/ui-lightness/jquery-ui-1.8.13.custom.css');
     $view->jQuery()->setLocalPath($view->baseUrl . '/js/jquery/js/jquery-1.5.1.min.js');
     $view->jQuery()->setUiLocalPath($view->baseUrl . '/js/jquery/js/jquery-ui-1.8.13.custom.min.js');
     $view->jQuery()->enable();
     $view->jQuery()->uiEnable();
     $view->addHelperPath("ZendX/Core/ViewHelper/Html", "ZendX_Core_ViewHelper_Html");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     return $view;
 }
开发者ID:nainit-virtueinfo,项目名称:zend-rest,代码行数:15,代码来源:Bootstrap.php

示例9: _sendNewCommentEmail

 /**
  * Send email notification to moderators when a new comment is posted
  * 
  * @todo move logic to model / library class
  * 
  * @param HumanHelp_Model_Comment $comment
  * @param HumanHelp_Model_Page $page
  */
 public function _sendNewCommentEmail(HumanHelp_Model_Comment $comment, HumanHelp_Model_Page $page)
 {
     $config = Zend_Registry::get('config');
     $emailTemplate = new Zend_View();
     $emailTemplate->setScriptPath(APPLICATION_PATH . '/views/emails');
     $emailTemplate->addHelperPath(APPLICATION_PATH . '/views/helpers', 'HumanHelp_View_Helper_');
     $emailTemplate->setEncoding('UTF-8');
     $emailTemplate->comment = $comment;
     $emailTemplate->page = $page;
     $emailTemplate->baseUrl = 'http://' . $_SERVER['HTTP_HOST'] . $this->view->baseUrl;
     $bodyHtml = $emailTemplate->render('newComment.phtml');
     $bodyText = $emailTemplate->render('newComment.ptxt');
     $mail = new Zend_Mail();
     $mail->setType(Zend_Mime::MULTIPART_ALTERNATIVE)->setBodyHtml($bodyHtml, 'UTF-8')->setBodyText($bodyText, 'UTF-8')->setSubject("New comment on '{$page->getTitle()}' in '{$page->getBook()->getTitle()}'")->setFrom($config->fromAddress, $config->fromName);
     if (is_object($config->notifyComments)) {
         foreach ($config->notifyComments->toArray() as $rcpt) {
             $mail->addTo($rcpt);
         }
     } else {
         $mail->addTo($config->notifyComments);
     }
     if ($config->smtpServer) {
         $transport = new Zend_Mail_Transport_Smtp($config->smtpServer, $config->smtpOptions->toArray());
     } else {
         $transport = new Zend_Mail_Transport_Sendmail();
     }
     $mail->send($transport);
 }
开发者ID:shevron,项目名称:HumanHelp,代码行数:36,代码来源:IndexController.php

示例10: __construct

 public function __construct($options, $seotoasterData)
 {
     // setting up Seotoaster data and plugin options
     $this->_options = $options;
     $this->_seotoasterData = $seotoasterData;
     // setting up helpers
     $this->_sessionHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('session');
     $this->_websiteHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('website');
     $this->_responseHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('response');
     $this->_redirector = new Zend_Controller_Action_Helper_Redirector();
     // setting up request and response objects
     $front = Zend_Controller_Front::getInstance();
     $this->_request = $front->getRequest();
     $this->_response = $front->getResponse();
     unset($front);
     // setting up view
     $this->_view = new Zend_View();
     $this->_websiteUrl = $this->_websiteHelper->getUrl();
     $this->_pluginName = strtolower(__CLASS__);
     $this->_view->websiteUrl = $this->_websiteUrl;
     $this->_view->pluginName = $this->_pluginName;
     // setting up view helpers (standart and ZendX)
     $this->_view->setHelperPath(APPLICATION_PATH . '/views/helpers/');
     $this->_view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     // runing init routines
     $this->_initAcl();
     $this->_initTranslator();
     $this->_init();
 }
开发者ID:PavloKovalov,项目名称:seotoaster,代码行数:29,代码来源:Abstract.php

示例11: _initView

 /**
  * Fungsi untuk inisialisasi view
  */
 protected function _initView()
 {
     // Initialize view
     $view = new Zend_View();
     /* ZendX_JQuery::enableView($view);
     
               $view->addHelperPath('ZendX/JQuery/View/Helper',
               'ZendX_JQuery_View_Helper'); */
     $view->addHelperPath(APPLICATION_PATH . '/../library/Budpar/View/Helper/', 'Budpar_View_Helper');
     $view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'View_Helper');
     // Add it to the ViewRenderer
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
     // Return it, so that it can be stored by the bootstrap
     return $view;
 }
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:19,代码来源:Bootstrap.php

示例12: initView

 private function initView()
 {
     $view = new Zend_View();
     $view->addHelperPath(APPLICATION_PATH . '/../library/EasyCMS/View/Helper', 'EasyCMS_View_Helper');
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
     $viewRenderer->setView($view);
 }
开发者ID:robinmbarnes,项目名称:EasyCMS,代码行数:7,代码来源:Bootstrap.php

示例13: getView

 public function getView()
 {
     require_once 'Zend/View.php';
     $view = new Zend_View();
     $view->addHelperPath('ZendX/MooTools/View/Helper/', 'ZendX_MooTools_View_Helper');
     return $view;
 }
开发者ID:benjamingb,项目名称:ZendX_MooTools,代码行数:7,代码来源:MooToolsTest.php

示例14: getView

 public function getView()
 {
     // require_once 'Zend/View.php';
     $view = new Zend_View(array('encoding' => 'UTF-8'));
     $view->addHelperPath(dirname(__FILE__) . '/../../../../library/Zend/View/Helper');
     return $view;
 }
开发者ID:netvlies,项目名称:zf,代码行数:7,代码来源:SelectTest.php

示例15: getView

 public function getView()
 {
     $view = new Zend_View();
     $view->addHelperPath(dirname(__FILE__) . '/../../../../library/Zend/View/Helper');
     $view->addScriptPath(dirname(__FILE__) . '/../_files/views/');
     return $view;
 }
开发者ID:ThorstenSuckow,项目名称:conjoon,代码行数:7,代码来源:ViewScriptTest.php


注:本文中的Zend_View::addHelperPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。