Home > Article > Backend Development > PHP development(33)-ThinkPHP5.0(5) namespace and TP5-PhpStorm
Based on the first two namespace blog posts, let’s take a look at the relationship between namespaces, public spaces and ThinkPHP5..0:
First we find the index controller (controller),
\application\index\controller\Index.php,
Repair it, the modified Index.php:
fetch(); } }
Then we manually create the following two folders view and index, and create index.html for controlling the index view,
##\application\index\view\index\ index.html,
Created index.html:
Title iwanghang
\public\index.php, without any modification, let’s run it and the printed result is iwanghang
// +---------------------------------------------------------------------- // [ 应用入口文件 ] // 定义应用目录 define('APP_PATH', __DIR__ . '/../application/'); // 加载框架引导文件 require __DIR__ . '/../thinkphp/start.php';The above is PHP development (33)- ThinkPHP5.0(5) namespace and TP5-PhpStorm content, please pay attention to the PHP Chinese website (m.sbmmt.com) for more related content!