介绍 入门 应用结构 请求处理 关键概念 配合数据库工作 接收用户数据 显示数据 安全 缓存 RESTfulWeb服务 开发工具 测试 高级专题 小部件 助手类 其他

发布于 2015-08-01 11:27:05 | 253 次阅读 | 评论: 0 | 来源: 网络整理

alias

Alias is a string that's used by Yii to refer to the class or directory such as @app/vendor.

application

The application is the central object during HTTP request. It contains a number of components and with these is getting info from request and dispatching it to an appropriate controller for further processing.

The application object is instantiated as a singleton by the entry script. The application singleton can be accessed at any place via Yii::$app.

assets

Asset refers to a resource file. Typically it contains JavaScript or CSS code but can be anything else that is accessed via HTTP.

attribute

An attribute is a model property (a class member variable or a magic property defined via __get()/__set()) that stores business data.

bundle

Bundle, known as package in Yii 1.1, refers to a number of assets and a configuration file that describes dependencies and lists assets.

configuration

Configuration may refer either to the process of setting properties of an object or to a configuration file that stores settings for an object or a class of objects.

extension

Extension is a set of classes, asset bundles and configurations that adds more features to the application.

installation

Installation is a process of preparing something to work either by following a readme file or by executing specially prepared script. In case of Yii it's setting permissions and fullfilling software requirements.

module

Module is a sub-application which contains MVC elements by itself, such as models, views, controllers, etc. and can be used withing the main application. Typically by forwarding requests to the module instead of handling it via controllers.

namespace

Namespace refers to a PHP language feature which is actively used in Yii2.

package

See bundle.

vendor

Vendor is an organization or individual developer providing code in form of extensions, modules or libraries.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务