-- petewilliams1983 <[email protected]> wrote
(on Monday, 22 December 2008, 05:02 AM -0800):
> I'm trying to do exactly the same thing. So far the best solution I can come
> up with is to pass my custom options in via either the $attribs or $options
> arrays. You can then process those options within your view helper, and
> delete them from the array so that they aren't added to the element markup.
> 
> However I'm pretty sure this isn't the best way of doing things.

Actually, this is exactly how it should work. :)

If you look at the current decorator implementations, they pass the
attributes set in the element directly to the view helper as the
$attribs array.

-- 
Matthew Weier O'Phinney
Software Architect       | [email protected]
Zend Framework           | http://framework.zend.com/

Reply via email to