本文整理汇总了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 ---*/
}
示例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();
}
示例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);
}
示例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');
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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();
}
示例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');
}
示例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();
}
}
示例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');
}
示例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);*/
}
示例14: testShouldAllowEnableView
public function testShouldAllowEnableView()
{
$view = new Zend_View();
ZendX_JQuery::enableView($view);
$this->assertTrue(false !== $view->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
}
示例15: _initJquery
protected function _initJquery()
{
ZendX_JQuery::enableView($this->getResource('view'));
}