View Single Post
  #5 (permalink)  
Old 08-21-2008, 03:10 PM
cmerlin cmerlin is offline
Junior Member
 
Join Date: Jul 2008
Posts: 9
Default

I've been having problems with this also, the viewscript doesn't crash out and I can get the getAction() and getMethod() functions when in the script.

However the elements of my form do not render. I use the following code:

PHP Code:
<?php $this->element->email ?>
The page is rendered fine with all the static html and alike however the email text box does not render.

Here is the element within my Form code:

PHP Code:
$email = new Zend_Form_Element_Text('email');
        
$email->setRequired(true)
            ->
addFilter('StripTags')
            ->
addFilter('StringTrim')
            ->
addFilter('StringToLower')
            ->
addValidator('NotEmpty')
            ->
addValidator('EmailAddress')
            ->
setAttrib('class''textinput_blue'); 
Any ideas on why this would be the case as this is driving me mad.

Thanks
Reply With Quote