Description on case sensitivity of CodeIgniter framework file names

Source: Internet
Author: User
The specification is very important, so that errors can be reduced during development, saving time! /Contollers: File name: lower-case class name: upper-case letters. & Amp; nbsp;/Views File name: lowercase class name: uppercase letter. & Amp; nbsp;

The specification is very important, so that errors can be reduced during development, saving time!

/Contollers:

File name: Lowercase

Class name: uppercase letters.

 

/Views

File name: Lowercase

Class name: uppercase letters.

 

/Model

File name: Lowercase

Class name: uppercase letters.

 

/Helpers (helper function)

File name: lowercase. Add the suffix _ helper. php, for example, filename_helper.php.

Function name: lower case

Extension: the file name, for example, MY_filename_helper.php, must be the same as the extension file name.

 

/Plugins)

File name: lowercase.

Function name: lower case

 

/Libraries (system Library)

File name: uppercase letters

Class name: uppercase letters

! The class name must be the same as the file name!

 

Core class library (or/libraries Directory)

File name: uppercase letters

Class name: the class name is prefixed with the uppercase letter CI _ and the first letter of the class name is capitalized. For example, CI_Session

Extension: file name, for example, MY _ name of the extended file

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.