Thanks for the reply,
When i wrote <?php $this->companyInformationForm ?> i can access the default
functionalities of the Zend_Form.
Now i want to use individual element of the form like
<h2>Company Information</h2>
<?php echo $this->companyInformationForm->companyname ;?>
<h2>Your Information</h2>
<?php echo $this->companyInformationForm->firstName ;?>
<?php echo $this->companyInformationForm->submit ;?>
Because i want to write some extra html code within the form elements
The above code i have written in phtml and these elements displayed
accordingly on the page
but the none of the decorators are added and on submit button no action took
place.
how to do that any idea!!!!!.
Plz help me out.
Thanks,
Rohit

the above code i have written in phtml and these elements displayed
accordingly on the page
but the none of the decorators are added and on submit button no action took
place.



Bart McLeod wrote:
> 
> Just make it a custom form, locate it in library, at a level next to 
> your application dir (where your custom classes go).
> 
> class LocationForm extends Zend_Form{
>     public function init(){
>        parent::init();
>         //your form is create here
>     }
> }
> 
> require_once ROOT.'/library/LocationForm.php';
> 
> $this->view->locationForm = new LocationForm();
> 
> //there you are.
> 
> Bart
> 
> Rohit83 schreef:
>> Hi All,
>> I have developed one form lets say for adding location for User and  For
>> Club.
>> For that i have developed one form named location and i want to use that
>> form everywhere when i am adding location.
>> Anybody Please help me,how i can reuse that form
>> thanks  in advance,
>> Rohit
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reusing-Zend_Form-tp17686374p17688858.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to