Detailed analysis of the directory structure of the yii framework_PHP tutorial

WBOY
Release: 2016-07-13 09:57:59
Original
1168 people have browsed it

Detailed analysis and explanation of the directory structure of the yii framework

This article lists in detail the directory structure and directory description of developing a project with yii. Friends who are learning the php framework yii can save it and take a look. .

/****Yii core source code directory structure description****/ |--framework framework core library |--base The underlying class library folder, including CApplication (application class, responsible for global user request processing, the set of application components it manages, will provide specific functions to the entire application); CComponent (component class, this file contains based on The foundation class for component and event-driven programming. Starting with version 1.1.0, a behavior's properties (or its public member variables or its properties defined through getter and/or setter methods) can be called through the component's access); CBehavior (Behavior class, mainly responsible for declaring events and corresponding event handler methods, attaching object behavior to components, etc.); CModel (model class, the base class provided for all data models); CModule (is a module and application The base class, mainly responsible for application components and sub-modules), etc. |--caching all caching methods, including Memcache cache, APC cache, data cache, CDummyCache virtual cache, CEAcceleratorCache cache and other caching methods |--cli YII project generation script |--collections Use PHP language to construct the data storage unit of traditional OO language. Such as: queue, stack, hash table, etc. |--console YII console |--db database operation class |--gii YII code generator (scaffolding), which can generate code including models, controllers, views, etc. |--i18n YII multi-language, providing localized data, information, file translation services, localized date and time formats, numbers, etc. in various languages |--logging logging component, YII provides flexible and scalable logging functions. Message logging can be divided into log levels and information categories. Applying hierarchical and category filters can further select messages for routing to different destinations, such as files, emails, browser windows, etc. |--messages multi-language prompt messages |--test tests provided by YII, including unit tests and functional tests |--utils provides commonly used formatting methods |--validators provide various verification methods |--vendors This folder contains third-party libraries used by the Yii framework |--views provides multi-language views of YII errors, logs, and configuration files |--All methods for developing applications in web YII |---actions controller operation class |---auth permission recognition class, including identity authentication, access control filtering, basic role access control, etc. |---filters Filters can be configured to be executed before or after the controller action is executed.For example, access control filters will be executed to ensure that the user is authenticated before executing the requested action; performance filters can be used to measure the time it takes for the controller to execute |---form form generation method |---helpers View assistant, including GOOGLE AJAX API, creating HTML, JSON, JAVASCRIPT related functions |---js JS library |---renderers view rendering component |---services encapsulates SoapServer and provides a WSDL-based Web service |---widgets components |---CArrayDataProvider.php Configurable sorting and paging properties to customize sorting and paging behavior |---CActiveDataProvider.php ActiveRecord method class |---CController.php controller method, mainly responsible for coordinating the interaction between the model and the view /****The following is the specific project directory structure description****/|--blog_phpernote.com/ |--index.php Web application entry script file |--assets/ Contains public resource files |--css/ Contains CSS files |--images/ Contains image files |--themes/ Contains application themes |--protected/ Contains protected application files |--yiic                       yiic command line script |--yiic.bat yiic command line script under Windows |--commands/ Contains custom 'yiic' commands |--shell/ Contains custom 'yiic shell' commands |--components/ Contains reusable user components |--MainMenu.php 'MainMenu' widget class ​ ​ ​ |--Identity.php ​ ​ ​ The 'Identity' class used for authentication             |--views/                                                                                                                                                                                                                                  |--mainMenu.php                                                                                                                                                                                       . |--config/ Contains configuration files ​ ​ ​ |--console.php ​ ​ ​ Console application configuration ​ ​ ​ |--main.php ​ ​ ​ Web application configuration |--controllers/ Contains controller class files |--SiteController.php Default controller class file |--data/ Contains sample database                                                                                                                                                                                                                                                                                                         ​ ​ ​ ​ ​ ​ |--schema.sqlite.sql ​ ​ Sample SQLite database               |--testdrive.db                                                                                                                   |--testdrive.db                                                                 |--extensions/ Contains third-party extensions |--messages/ Contains translated messages |--models/                   Class files containing models             |--LoginForm.php                                                                                                                                                                                                                 |--ContactForm.php Form model for 'contact' action |--runtime/ Contains temporarily generated files |--views/ Contains the controller's view and layout files |--layouts/ Contains layout view files                     |--main.php                                                                                                                                                                                                     ​ ​ ​ ​ ​ |--column1.php ​ ​ Use the layout used by single column pages                                                                                                                                                                                                                                                                                                                                                                                        to                |--pages/                                                                                                                                                                                                                                    |-About.php "About" page view |-Contact.php 'contact' action view |-error.php 'error' action view (display external error) | --DDex.php 'Index' Action View |-login.php 'login' action view |-System/ Including the system view file

Article you may be interested in

  • PHP Get the directory all files and save the result of the result
  • Linux command file directory management cat command
  • php creates a simple case of your own MVC framework, providing ideas, for reference only
  • A brief summary of Jquery animation effects
  • smarty How to use php functions in templates and how to use multiple functions for one variable in smarty templates
  • How to sort database query results according to the pinyin of the first letter of Chinese characters
  • php clears (delete) files in the specified directory , Methods of not deleting directory folders
  • DedeCMS (Dreamweaver) website server directory security setting experience sharing

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/979874.htmlTechArticleDetailed analysis and description of the directory structure of the yii framework. This article lists in detail the directory structure and directory description of a project developed with yii. Friends who are learning the PHP framework Yii can collect it and take a look. /...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!