【问题标题】:Zend Framework: Dao modelZend 框架:Dao 模型
【发布时间】:2012-02-12 06:50:56
【问题描述】:

我收到了一个问题陈述,我对 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

任何有关如何进行的帮助都会非常有帮助..

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2010-11-15
      • 2010-09-22
      • 2012-03-06
      • 1970-01-01
      • 1970-01-01
      • 2012-02-28
      • 2013-02-11
      相关资源
      最近更新 更多