當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。