For example: /application/uctenter/controller
For example: /application/uctenter/controller/User.php
class User{
//Attribute
public userName; //The first letter of the camel case name is lowercase
//Private attribute
private _userAge; //The first letter of the camel case name is lowercase
//Method
public function getUser(){//The camel case name The first letter is lowercase
}
//Magic method
function __autoload(){//Start with a double underscore "__"
}
}
Such as: get_user()|url_route_on|wll_user
5. Css adopts bootstrap naming convention , custom style is : current page+ position+ function [such as: index_left_news]