Learn the OPENSNS framework based on thinkphp official documentation

Source: Internet
Author: User
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

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.