Learn Opensns Framework According to thinkphp official documents 1. Interpreting the role of each controller folder under Application
The controller class is named by: Controller name (hump method, first letter capitalization) +controller
Controller files are named by: Class name +class.php (class file suffix)
namespace Weibo\Controller; ///这是系统的规范要求,表示当前类是weibo模块下的控制器类,与实际路径一致use Think\Controller; //引入 Think\Controller 类库便于直接使用class BaseController extends Controller{............}
2. Interpreting the development specifications of thinkphp
Code modifications should also follow this specification after a team project. https://www.kancloud.cn/manual/thinkphp/1687
The important thing to note when looking at the code is that in thinkphp, a single-letter capitalization function is usually a quick definition of some operation, or has a special effect. For example: A, D, S, L methods, and so on.
all use UTF-8 encoding.
The development process uses debug mode whenever possible.
Learn the OPENSNS framework based on thinkphp official documentation