让 idea webstorm phpstorm 能够 识别 thinkphp 的方法(自动提示功能)

  • Post author:
  • Post category:php


1、在/ThinkPHP/Library/Think 目录下 新建一个文件,名为:  BaseController.class.php

2、BaseController.class.php 内容为

namespace Think;


 abstract class BaseController extends Controller
{

//什么都不用写



}

3、把Controller 改为BaseController ,如以下代码

use Think\BaseController ;

class IndexController extends BaseController {

}

转载于:https://www.cnblogs.com/aliblogs/p/5567338.html