-- philip142au <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 04:39 AM -0700):
>
>
> Hi! ok I tried to use this, I want to use the form elements from Dojo.
>
> So I just copy it in and do the add helper path as you said and it gives me.
>
> Catchable fatal error: Argument 3 passed to
> Zend_Dojo_View_Helper_Form::form() must be an array, string given in
> /projects/backup/phptaco/src/library/Zend/Dojo/View/Helper/Form.php on line
> 77
>
> Wha?
>
> Any idea?
Yes -- look at the method signature for the helper, as it differs from
the standard form view helper:
* dijit.form.Form version:
public function form($id, $content, array $attribs)
* standard version:
public function form($name, $attribs = null, $content = false)
I may change the dijit version to conform to the standard version to
prevent gotchas like this; in the meantime, the above should help you
figure out what you need to do.
Also, please be aware that the Dojo stuff is under active development
right now, which means that APIs may change; don't use this in
production!
> Matthew Weier O'Phinney-3 wrote:
> >
> > I've committed the initial implementation of the Dojo view helper to the
> > standard/incubator/ of our svn repository:
> >
> > http://framework.zend.com/svn/framework/standard/incubator/
> >
> > If you utilize it, you will need to do two things:
> >
> > * Add the incubator library to your include_path
> > * Add a helper path to your view object:
> > $view->addHelperPath(
> > 'path/to/incubator/library/Zend/Dojo/View/Helper',
> > 'Zend_Dojo_View_Helper'
> > );
> >
> > Once those steps are in place, you can setup most aspects of your Dojo
> > environment, including:
> >
> > * Specifying either an (aol-only for now) CDN location or local path
> > to dojo.js
> > * Specifying dojo module paths
> > * Specifying dojo.require statements
> > * Specifying addOnLoad() callbacks
> > * Capturing arbitrary lambdas for addOnLoad
> > * Specifying stylesheets (either by module or path to stylesheets)
> >
> > In the end, in your layout view script, simply do the following:
> >
> > <?= $this->dojo() ?>
> >
> > There are some known issues:
> >
> > * No persistence between view objects
> > * Does not currently output arbitrary local stylesheets
> >
> > I will be addressing these two issues tomorow, and then working on
> > documentation for the component.
> >
> > Please test; feedback is always welcome!
> >
> > Also, if you have time and are interested in the Dojo integration,
> > please review and comment on the following proposals:
> >
> > * Zend_Form Dojo elements/decorators:
> > http://framework.zend.com/wiki/display/ZFPROP/Dojo+Zend_Form+Widgets
> >
> > * dojo.data component for ZF:
> >
> > http://framework.zend.com/wiki/display/ZFPROP/Zend_Dojo_Data+-+Matthew+Weier+O%27Phinney
> >
> > Thanks!
> >
> > --
> > Matthew Weier O'Phinney
> > Software Architect | [EMAIL PROTECTED]
> > Zend Framework | http://framework.zend.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Dojo-view-helper-in-incubator-and-ready-for-testing-tp18079629p18337147.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/