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?

Thanks, Philip



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.

Reply via email to