Hi All,
I'm trying using ZendX_JQuery within Zend_Application, which generated by 
Zend_Tool and edited Bootstrap.php, refer 'storefront' to add ZendX_JQuery as 
the following :
Bootstrap.php===========================================================
//
protected function _initView()
    {       
        $viewRenderer = 
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
        $viewRenderer->init();

        $this->_view = $viewRenderer->view;
        $this->_view->setEncoding('UTF-8');
        $this->_view->doctype('XHTML1_STRICT');
        $this->_view->headTitle('Development');

        //Load themes
       $this->_view->headLink()->appendStylesheet('/themes/base/ui.all.css');

        // Add jQuery
        
$this->_view->addHelperPath('ZendX/JQuery/View/Helper','ZendX_JQuery_View_Helper');
        $this->_view->jQuery()->setLocalPath('../scripts/jquery-1.3.2.min.js');
        
$this->_view->jQuery()->setUiLocalPath('../scripts/jquery.ui/jquery-ui.min.js');
       
        Zend_Layout::startMvc(array('layout' => 'main',
            'layoutPath' => APPLICATION_PATH . '/layouts/scripts'
        ));
    }
//
====================================================================
 
why jquery library not loaded when I'm load the page. 
 
But jquery library loaded, when I add the following code on scripts(index.phtml)
index.phtml==========================================================
<?= $this->ajaxLink("Show me something",
                    "/index/demo",
                    array('update' => '#content')); ?>
<div id="content"></div>
====================================================
 
Is I'm missing something?
 
Thanks in advance, bn

 

 



Reply via email to