drze7794 2013-04-30 10:37
浏览 14

模块或新应用程序?

I've started working with Yii for a month (great Framework) and I am now going to build an application, ERP style.

The goal is to have a main application and then, according to user's roles and permissions, have the possibility to navigate (through single sign-on) to the other applications in the ERP.

I read about modules on Yii's docs and although I got the idea, I was left with some doubts.

Surely it is an advantage to have a One Big application with all the branch applications the company needs as modules but what are the limitations?

Or is it preferable to create seperate entire applications instead of modules inside the main App and then navigate through sub-domains?

  • 写回答

1条回答 默认 最新

  • dongxie45083 2013-04-30 12:29
    关注

    Its better and preferred to have modules rather than developing separate applications. With modules you can have totally different look and feel just like a separate application. You must have used Gii tool, well that is also a module within your application.

    The main advantage with modules is that you wont have to deploy it separately, it is a self contained application in your website. But again that could be a disadvantage if you need to have total separation of these applications.

    To learn more about modules see http://www.yiiframework.com/doc/guide/1.1/en/basics.module

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入