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


PHP ZendX_JQuery::enableView方法代码示例

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


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

示例1: _initViewHelpers

 protected function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addHelperPath('Base/View/Helper/', 'Base_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
     /*------ default blocks in the region right ---*/
     /*$blockM=new Base_View_Block();
        		$path="/layouts/scripts/page/blocks/journal";
        		$blocks=array("name"=>"search-destination", "order"=>"10", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"right-banner", "order"=>"9", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"recent-blog", "order"=>"8", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
     
        		$blocks=array("name"=>"journal-categories", "order"=>"7", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"tag-cloud", "order"=>"6", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');*/
     /*------ default blocks in the region right ---*/
 }
开发者ID:riteshsahu1981,项目名称:we,代码行数:27,代码来源:Bootstrap.php

示例2: setUp

 protected function setUp()
 {
     $this->_helper = new Zle_View_Helper_FormDatePicker();
     $this->_helper->setView($this->_view = new Zend_View());
     ZendX_JQuery::enableView($this->_helper->view);
     $this->_helperOptions = Zle_View_Helper_FormDatePicker::getDatePickerDefaultOptions();
 }
开发者ID:JellyBellyDev,项目名称:zle,代码行数:7,代码来源:FormDatePickerTest.php

示例3: init

 public function init()
 {
     //        $this->_auth = new My_Auth("user");
     $this->db = Zend_Registry::get('db');
     //        $this->_helper->layout()->setLayout('master');
     ZendX_JQuery::enableView($this->view);
 }
开发者ID:ankuradhey,项目名称:laundry,代码行数:7,代码来源:IndexController_29_10_2015.php

示例4: _initjQuery

 public function _initjQuery()
 {
     $this->bootstrap('view');
     $view = $this->getResource('view');
     ZendX_JQuery::enableView($view);
     $view->jQuery()->setLocalPath('http://code.jquery.com/jquery-1.6.1.min.js')->setUiLocalPath('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js')->addStylesheet('/assets/jquery.ui.all.css');
 }
开发者ID:euginepj,项目名称:Skeleton-Zend-APP,代码行数:7,代码来源:Bootstrap.php

示例5: 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

示例6: getJquery

 /**
  * Retrieve JQuery View Helper
  *
  * @return ZendX_JQuery_View_Helper_JQuery_Container
  */
 public function getJquery()
 {
     if (null === $this->_jquery) {
         $this->getBootstrap()->bootstrap('view');
         $this->_view = $this->getBootstrap()->view;
         ZendX_JQuery::enableView($this->_view);
         $this->_parseOptions($this->getOptions());
         $this->_jquery = $this->_view->jQuery();
     }
     return $this->_jquery;
 }
开发者ID:openbizx,项目名称:openbizx-cubix,代码行数:16,代码来源:Jquery.php

示例7: getJquery

 /**
  * Retrieve JQuery view helper
  *
  * @return ZendX_JQuery_View_Helper_JQuery_Container
  */
 public function getJquery()
 {
     if (null === $this->_jquery) {
         $this->getBootstrap()->bootstrap('view');
         $view = $this->getBootstrap()->getResource('view');
         ZendX_JQuery::enableView($view);
         $options = array_change_key_case($this->getOptions(), CASE_LOWER);
         foreach ($options as $key => $value) {
             switch ($key) {
                 case 'cdnssl':
                     $view->jQuery()->setCdnSsl($value);
                     break;
                 case 'enable':
                     if ($value) {
                         $view->jQuery()->enable();
                     }
                     break;
                 case 'javascriptfiles':
                     foreach ($value as $name => $path) {
                         $view->jQuery()->addJavascriptFile($path);
                     }
                     break;
                 case 'localpath':
                     $view->jQuery()->setLocalPath($value);
                     break;
                 case 'rendermode':
                     $view->jQuery()->setRenderMode($value);
                     break;
                 case 'stylesheets':
                     foreach ($value as $name => $path) {
                         $view->jQuery()->addStylesheet($path);
                     }
                     break;
                 case 'uienable':
                     if ($value) {
                         $view->jQuery()->uiEnable();
                     }
                     break;
                 case 'uilocalpath':
                     $view->jQuery()->setUiLocalPath($value);
                     break;
                 case 'uiversion':
                     $view->jQuery()->setUiVersion($value);
                     break;
                 case 'version':
                     $view->jQuery()->setVersion($value);
                     break;
             }
         }
         $this->_jquery = $view->jQuery();
     }
     return $this->_jquery;
 }
开发者ID:robo47,项目名称:parables,代码行数:58,代码来源:Jquery.php

示例8: _initViewHelpers

 protected function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addHelperPath('Base/View/Helper/', 'Base_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
 }
开发者ID:riteshsahu1981,项目名称:we,代码行数:12,代码来源:Bootstrap.php

示例9: _initViewHelpers

 function _initViewHelpers()
 {
     $view = new Zend_View();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     Zend_Controller_Front::getInstance()->getBaseUrl();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
     ZendX_JQuery::enableView($view);
     ZendX_JQuery::enableView($view);
     $view->JQuery()->enable();
     $view->JQuery()->uiEnable();
 }
开发者ID:rammere,项目名称:birzeitStore,代码行数:14,代码来源:Bootstrap.php

示例10: _initViewHelpers

 protected function _initViewHelpers()
 {
     $view = new Zend_View();
     ZendX_JQuery::enableView($view);
     $viewrenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewrenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewrenderer);
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->doctype('XHTML1_STRICT');
     $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8')->appendName('description', 'Program do katalogowania zdjęć.');
     $view->headTitle('Praca dyplomowa');
 }
开发者ID:BGCX261,项目名称:zieli-svn-to-git,代码行数:14,代码来源:Bootstrap.php

示例11: setJquery

 /**
  * Set Jquery
  *
  * @return void
  */
 public function setJquery()
 {
     ZendX_JQuery::enableView($this->_view);
     $options = array_change_key_case($this->getOptions(), CASE_LOWER);
     foreach ($options as $key => $value) {
         switch ($key) {
             case 'cdnssl':
                 $this->_view->jQuery()->setCdnSsl($value);
                 break;
             case 'javascriptfiles':
                 foreach ($value as $name => $path) {
                     $this->_view->jQuery()->addJavascriptFile($path);
                 }
                 break;
             case 'localpath':
                 $this->_view->jQuery()->setLocalPath($value);
                 break;
             case 'rendermode':
                 $this->_view->jQuery()->setRenderMode($value);
                 break;
             case 'stylesheets':
                 foreach ($value as $name => $path) {
                     $this->_view->jQuery()->addStylesheet($path);
                 }
                 break;
             case 'uilocalpath':
                 $this->_view->jQuery()->setUiLocalPath($value);
                 break;
             case 'uiversion':
                 $this->_view->jQuery()->setUiVersion($value);
                 break;
             case 'version':
                 $this->_view->jQuery()->setVersion($value);
                 break;
         }
     }
     if (array_key_exists('enable', $options) && $options['enable']) {
         $this->_view->jQuery()->enable();
     } else {
         $this->_view->jQuery()->disable();
     }
     if (array_key_exists('uiEnable', $options) && $options['uiEnable']) {
         $this->_view->jQuery()->uiEnable();
     } else {
         $this->_view->jQuery()->uiDisable();
     }
 }
开发者ID:rockett,项目名称:parables,代码行数:52,代码来源:Jquery.php

示例12: init

 public function init()
 {
     $this->db = Zend_Registry::get('db');
     // turn on profiler
     $profiler = new Zend_Db_Profiler_Firebug('DB Queries');
     $profiler->setEnabled(true);
     $this->db->setProfiler($profiler);
     // enable debug
     Bvb_Grid_Deploy_JqGrid::$debug = true;
     // enable JQuery - should be part of bootstrap
     ZendX_JQuery::enableView($this->view);
     // set url to jqGrid library
     if (@isset(Zend_Registry::get('config')->site->jqGridUrl)) {
         Bvb_Grid_Deploy_JqGrid::$defaultJqGridLibPath = Zend_Registry::get('config')->site->jqGridUrl;
     }
     $this->_config = new Zend_Config_Ini('./application/grids/grid.ini', 'production');
 }
开发者ID:Aeryris,项目名称:grid,代码行数:17,代码来源:JqgridController.php

示例13: _initViewHelpers

 function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->setHelperPath(APPLICATION_PATH . '/helpers', '');
     //Zend_Dojo::enableView($view);
     // cannot use both of them at the same time
     ZendX_JQuery::enableView($view);
     $view->doctype('HTML5');
     $view->headMeta()->appendHttpEquiv('Content-type', 'text/html;charset=utf-8')->appendName('description', 'Using zend view helper');
     $view->headTitle()->setSeparator(' - ');
     $view->headTitle('Zend Framework');
     $navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav');
     $navContainer = new Zend_Navigation($navContainerConfig, '');
     $view->navigation($navContainer)->setAcl($this->_acl)->setRole(Zend_Registry::get('role'));
     /*$role=null;
             if ($this->_auth->hasIdentity())
     		{
     			$identity = $this->_auth->getStorage()->read();
     			$role = $identity->role;
     		}
             $view->navigation($navContainer)->setAcl($this->_acl)->setRole($role);*/
 }
开发者ID:xiaolingdong05,项目名称:firstzend,代码行数:24,代码来源:Bootstrap.php

示例14: testShouldAllowEnableView

 public function testShouldAllowEnableView()
 {
     $view = new Zend_View();
     ZendX_JQuery::enableView($view);
     $this->assertTrue(false !== $view->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:6,代码来源:JQueryTest.php

示例15: _initJquery

 protected function _initJquery()
 {
     ZendX_JQuery::enableView($this->getResource('view'));
 }
开发者ID:ka2er,项目名称:mmc,代码行数:4,代码来源:Bootstrap.php


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