View Single Post
  #2 (permalink)  
Old 04-11-2008, 11:38 PM
chinaski chinaski is offline
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default Partial answer // another question

If I add the prefix to the element, it works, but to the form, it doesn't.

For example,

$testing = new Zend_Form_Element_Text('testing');
$testing->setLabel('Test Val')
->setRequired(true);

//new code
$testing->addPrefixPath('My','My/');

$testing->addValidator('TestVal');

$testing->setValidators($validators);

Works. Can anyone tell me why it doesn't work when I add it to form itself?
Reply With Quote