Zend Framework:Dao模型

时间:2012-02-12 06:50:57

标签: zend-framework zend-form dao zend-db zend-db-table

我得到了一个问题陈述,我对zend框架相对较新。

/

> **
>      * create a new lead
>      *
>      * planId will be sent $_GET['planId'], the form should send the action to
>      * the same page
>      * a user should be logged in and he should be administrator of the plan
>      * 
>      * @uses Plans_Model_Dao_Moderator::isAdmin
>      * @throws unauthorized exception, catch the exception in error controller
>      
> 
> > *         get the form from form builder module
> >      * @uses Formbuilder_Model_Dao_Form::getForm
> >      *       save in database
> >      * @uses Leads_Model_Dao_Lead::save
> >      *       send notifications to _POST['to']
> >      * @uses Zend_Mail
从我在本论坛上发布的早期问题我可以理解,如何检查我能理解的行政权利更好..但后来我仍然坚持后一部分,即

@uses Formbuilder_Model_Dao_Form::getForm
> >      *       save in database
> >      * @uses Leads_Model_Dao_Lead::save
> >      *       send notifications to _POST['to']
> >      * @uses Zend_Mail

任何有关如何处理它的帮助都会有所帮助..

1 个答案:

答案 0 :(得分:0)

在第二部分,建议: - 获取控制器和表格中的表格发送到视图 - 成功提交表单保存到数据库 - 成功保存后,使用POST中的电子邮件地址发送通知电子邮件,并输入密钥“to”