Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008, 10:15 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default What is Zend_Form's common usage

I am trying to learn Zend_Form and I am sure it will be very useful once I know it but right now it is just this gray mess of uncertainty.

I have a question for those of you who have used this class successfully. Which way do you prefer to implement the form? Do you store it in a config file? Do you make a subclass of Zend_Form? Or do you just use the form methods inside of an Action() function ? I'm not sure which way I should go.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 05:47 AM
Member
 
Join Date: Jun 2007
Posts: 33
Default

The way I'm planning on using it is by sub classing it. I don't know that any implimentation is better than the others, I think it's just a matter of preference.

I don't think just using it's methods helps you any other than putting your form into a different format. To me the real benefit is being able to access and filter all your elements in the form with one command and having all the data wrapped up in a nice little ball for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 03:10 AM
Junior Member
 
Join Date: Feb 2008
Posts: 18
Default

Although I haven't used it yet, I'll go to use it as a helper for the phtmls (in the helper folder)

I think you can still use it inside the Action, but not sure about the clean code...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-23-2008, 07:39 AM
Member
 
Join Date: Feb 2008
Posts: 48
Question

Can anyone plz tell me how to remove the "dd" and "dt" tag while echoing the $form object to get the FORM. Because it is disturbing my style sheet and alignment. For example if i give label for a text field, its coming like below.
User Name:
Text Box;
Email:
Text Box;

The above output is because of the dd and dt tags. How to remove this tags in the form . Because i want to place the text box inside a TD or div.

-murugesh,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:24 PM.