Witam.
Udalo sie moze komus skonfigurwac dojo w zend framework? moze znacie jakies linki z opisem co i jak?
dzieki
protected function _initDoctype() { $view = new Zend_View(); $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer(); $viewRenderer->setView($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); }
protected function _initDoctype() { $this->bootstrap('view'); $view = $this->getResource('view'); $view->doctype('XHTML1_STRICT'); Zend_Dojo::enableView($view); $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); $view->dojo() ->addStyleSheetModule('dijit.themes.tundra') ->setLocalPath('/js/dojo/dojo/dojo.js') ->setDjConfigOption('usePlainJson',true) ->setDjConfigOption('parseOnLoad',true) ->enable(); }
<?php // Define path to application directory // Define application environment // Ensure library/ is on include_path ))); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run();