yii中的模块-解释 [英] Modules in yii - explain

查看:95
本文介绍了yii中的模块-解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难理解Yii中的模块.有人可以向我解释他们的目的是什么以及要添加的内容吗?

I'm having a hard time understanding modules in Yii. Can someone explain to me what their purpose is and what the come to add?

推荐答案

来自文档:

模块是一个独立的软件单元,由模型,视图,控制器和其他支持组件组成.在许多方面,模块类似于应用程序.主要区别在于模块不能单独部署,而必须驻留在应用程序内部.用户可以像使用普通应用程序控制器一样访问模块中的控制器.

A module is a self-contained software unit that consists of models, views, controllers and other supporting components. In many aspects, a module is similar to an application. The main difference is that a module cannot be deployed alone and it must reside inside of an application. Users can access the controllers in a module like they do with normal application controllers.

这篇关于yii中的模块-解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆