PHP Yii Framework Source Reading (i) directory file analysis

Source: Internet
Author: User
Tags filter command line php language log yii

Catalog files

|-framework Framework Core Library

|--base the underlying class library folder, which contains the CApplication (Application class, which is responsible for global user request processing, it manages the set of application components that will provide specific functionality to the entire application), Ccomponent (Component class, which contains basic classes based on component and event-driven programming, from Version 1.1.0 start, an attribute of the behavior (or its public member variable or it through getter and/or setter methods??) Defined attributes) can be invoked through the access of the component, Cbehavior (behavior class, primarily responsible for declaring events and corresponding event handlers, attaching object behavior to components, and so on), Cmodel (model class, base class provided for all data models), Cmodule ( is the base class for modules and applications, primarily responsible for application components and sub modules, etc.

|--caching all caching methods, including the Memcache cache, APC cache, data cache, Cdummycache virtual cache, Ceacceleratorcache cache, and so on various caching methods

|--CLI Yii Project Generation script

|--collections uses the PHP language to construct the traditional OO language data storage unit. such as: queues, stacks, hash tables, etc.

|--console Yii Control Console

|--DB Database Operations Class

|--gii YII Code Generator (scaffolding) that generates code including models, controllers, views, etc.

|--i18n YII Multilingual, providing localized data in a variety of languages, information, translation services for documents, localized date and time formats, numbers, etc.

|--logging Log component, YII provides flexible and scalable logging capabilities. Message records can be classified according to the log level and information category. Application hierarchy and category filters, the message can be further selected to route to different destinations, such as files, emails, browser windows, and so on

Multi-language |--messages prompting information

|--test Yii provides testing, including unit testing and functional testing

|--utils provides a common formatting method

|--validators provides a variety of authentication methods

|--vendors This folder includes a third party database used by the YII framework

|--views provides a multiple-language view of the Yii error, log, configuration file

|--web Yii all development and application methods

|---Actions controller action Class

|---Auth rights, including identity authentication, access control filtering, basic role access control, etc.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/PHP/

|---Filters filter that can be configured to execute before or after the controller action is performed. For example, an access control filter is executed to ensure that the user is authenticated before the requested action is performed; performance filters can be used to measure the time that a controller performs

|---form generation method

|---Helpers view assistant, including Google AJAX APIs, creating Html,json,javascript-related features

|---JS JS library

|---renderers view rendering component

|---Services encapsulation soapserver and provides a WSDL based Web service

|---widgets parts

|---carraydataprovider.php the sort and paging properties that can be configured to customize sorting and paging behavior

|---cactivedataprovider.php ActiveRecord method class

|---ccontroller.php controller method, which is mainly responsible for coordinating the interaction between the model and the view

|---cpagination.php pagination class

|---cuploadedfile.php upload file class

|---curlmanager.php URL management

|---cwebmodule.php application module management, application module can be considered as a separate sub-application and so on

|--. htaccess redirect File

|--yii.php Boot file

The main function of the |--yiibase.php Yiibase class is to register the automatic load class method, where all interfaces are used to load the frame.

|--YIIC Yii LINUX Command line script

|--yiic.bat YII WINDOW Command line script

|--yiilite.php It is a merged file of some commonly used Yii class files. In the file, comments and trace statements are removed. Therefore, using yiilite.php will reduce the number of referenced files and avoid executing trace statements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.