pedro151 / zendx
ZendX
Installs: 12 126
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- zendframework/zendframework1: 1.*
This package is not auto-updated.
Last update: 2025-02-01 21:09:08 UTC
README
Install
$ composer require pedro151/zendx
setting is in public\index.php
set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../vendor/zendframework/zendframework1/library'), realpath(APPLICATION_PATH . '/../vendor/pedro151/zendx/library'), realpath(APPLICATION_PATH . '/../library'), get_include_path(), )));
Configuration
setting is in application/configs/application.ini
;CONFIG ZENDX resources.view.helperPath.ZendX_JQuery_View_Helper = APPLICATION_PATH "/../ZendX/JQuery/View/Helper"
or in application/Bootstrap.php
$view->addHelperPath ( "ZendX/JQuery/View/Helper" , "ZendX_JQuery_View_Helper" );
Enabling
In Bootstrap.php
File setting:
public function _initJQuery () { $this->_bootstrap ( 'FrontController' ); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper ( 'viewRenderer' ); if ( null === $viewRenderer->view ) { $viewRenderer->initView (); } $view = $viewRenderer->view; /* Initialize action controller here */ $view->jQuery () ->uiDisable () ->enable (); }