Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2008, 02:44 AM
Junior Member
 
Join Date: Sep 2008
Posts: 4
Default Zend_Dojo::enableView($view);

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-23-2008, 03:52 AM
Junior Member
 
Join Date: Sep 2008
Posts: 4
Default

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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:24 AM.