im really really confuse about the bootstrap, iim following this tutorial on
how to enable dojo with zend as i want to learn dojo,
http://zendgeek.blogspot.com/2009/07/creating-nice-dojo-form-in-zend.html
but the 1st step is to enable the dojo in bootstrap which has this code 

//$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);

but when i look at my bootstrap....
///////
<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload()
    {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            'namespace' => '', 
            'basePath'  => APPLICATION_PATH));
        return $moduleLoader;
    }
    
     function _initViewHelpers()
    {
        $this->bootstrap('layout');
        $layout = $this->getResource('layout');
        $view = $layout->getView();

        $view->doctype('XHTML1_STRICT');
        $view->headMeta()->appendHttpEquiv('Content-Type',
'text/html;charset=utf-8');
        $view->headTitle()->setSeparator(' - ');
        $view->headTitle('Credit Scoring System');
    }
    }

where should i put the code??my bootstrap file is in the application folder
 
-- 
View this message in context: 
http://www.nabble.com/How-to-enable-dojo-in-1.8%21%21-tp24421373p24421373.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to