|
|||
|
Hi to all,
While I'm trying to figure things out from the last webinair, I don't get any further as this; Zend_Dojo::enableView($view); $view->dojo()->setDjConfiguration('usePlainJson', true) ->addStylesheetModule('dijit.themes.tundra') ->addStylesheet('/scripts/dojox/grid/_grid/tundraGrid.css') ->LocalPath('/scripts/dojo/dojo.js') ->addLayer('/scripts/paste/main.js') //custom code ->addJavascript('paste.main.init();') ->disable(); //enable only when necessary What I get is this; Notice: Undefined variable view in C:\xampp\htdocs\...\bootstrap.php on line 23 Catchable fatal error: Argument 1 passed to Zend_Dojo::enableView() must be an instance of Zend_View_Interface, null given, called in C:\xampp\htdocs\...\bootstrap.php on line 23 and defined in C:\xampp\htdocs\...\library\Zend\Dojo.php on line 80 I've migrated from zfw1.6 to zfw1.6.1! Where I'm going wrong? Thanks aadpouw |
|
|||
|
Hi all,
I just find out myself; First I had to start with; $view= new Zend_View(); Then I had 2 lines wrong; $view->dojo()->setDjConfiguration('usePlainJson', true), what should had been $view->dojo()->setDjConfigOption('usePlainJson', true) And ->LocalPath('/scripts/dojo/dojo.js'), what should had been ->setLocalPath('/scripts/dojo/dojo.js') Ok, from mistakes we learn the most ![]() Solved ! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|