Zend 框架:Dao 模型

发布于 2025-01-04 22:15:00 字数 1116 浏览 0 评论 0原文

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

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

I have been given a problem statement and i am relatively new to zend framework.

/

> **
>      * 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

from the earlier question posted on this forum i could understand ,how to check the administrative rights i could understand it better ..but then i am still stuck with latter part i.e

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

any help with how to proceed with it will really be helpful..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

强者自强 2025-01-11 22:15:00

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

In the 2nd part, it is suggesting:
- get the form in the controller & send to the view
- on successful submission of the form save to the database
- on successful save send an notification email using the email address from the POST with the key 'to'

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文