-- chinaski <[EMAIL PROTECTED]> wrote
(on Tuesday, 15 April 2008, 02:20 PM -0700):
> 
> Thanks for the reply. I fiddled with path and got it to work using: 
> 
> $element->addPrefixPath('My','My/');
> 
> However, the same code does not work when I use add the prefix to the form:
> 
> $form->addElementPrefixPath('My','My/');
> 
> 
> I thought that adding the prefex path to the form itself made the path
> available to all of the elements? Am I missing something?

It does... as long as:

  * you're adding the prefix path *before* creating elements
  
  * AND you're creating the elements via the form object's addElement()
    or createElement() methods

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to