doumian3780 2012-02-27 01:10
浏览 22
已采纳

yii网站迁移

I have a web site that built from the ground up, and im seriously considering transferring this site over to the Yii framework. Im kinda stuck on the "proper" why to do it. I have a few classes that where written for the site. One particular one is an e-mail function that is based on database templates. The class reacts to different actions in the system, pull the info from the DB and fill in e-mail templates that get sent out.

Do i move this email system into the Modules layer? Controller Layer or should it be re-written as an extension?

I have to admit that i am new to MVR and frameworks so any help advice would be appreciated.

  • 写回答

2条回答 默认 最新

  • dongpeiwei8589 2012-02-27 05:31
    关注

    Within Yii, you're probably looking at a combination. The custom email sending function would probably be best as an extension that you can then call from other controllers with ease. Administering the templates would warrant a model and controller for your CRUD interaction with the templates.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器