replyteacher. Mine is the 5.0.5 full version, and I read the instructions for 5.0 as well.
use think\Route:
Route::rule…
It’s accessed like this. Why is it wrong for me to write like this?
The 5.0 manual also says that the Route root namespace is think
1.think is the root namespace in ThinkPHP5.1, corresponding to: /thinkphp/libaray/think path;
2. When using the space name in use at the top of the code, the default is from the global Initially, you can omit the global space identifier: \;
3. When used directly in the code, the global space name must be added: \, that is, the fully qualified name;
4.Here It should be written like this: \think\Route::rule(...);
5. However, the framework has preset the facade of the Route class***: \think\facade\Route; So It is recommended to use static *** to access..