Zend 框架:Dao 模型
我收到了一份问题陈述,我对 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在第二部分中,建议:
- 获取控制器中的表单发送到视图
- 成功提交表单后保存到数据库
- 成功保存后,使用 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'