2009年7月16日星期四

Re: [fw-db] How to submit form data with Zend Db and Dojo? BA7-899

As far as I remember Zend_Dojo_Form simply changes the UI of the form elements. Once the form has been submitted the data is then in the request and can be got and manipulated as if it were coming from a regular form. After form submission try viewing the output from Zend_Debug::dump($form->getValues()) and all the data should be in there. You can then pass the data into any of your models for storage into the database as normal.

Daniel Del Rio

On Thu, Jul 16, 2009 at 6:31 AM, Enkhbilguun Erdenetsogt <enkhbilguun@beregu.com> wrote:
Hello,

I'm just starting to use Zend_Dojo in my Zend Application. After a lot search through google, I found how to created form elements and containers, but I don't understand how to get submitted data from a controller and to submit the data to my db.

Normally, without Dojo, I can use Zend_Form and Zend_Db very good, but it seems Zend_Dojo_Form is a little bit different.

Could you tell me any Zend_Dojo data submitting  tutorial if there is any? If you have any sample and simple controller, Db model, dojo form code, I believe I can read and understand the method ^.^

Thank you all!

没有评论: