前端看懂PHP框架Laravel
PHP框架Laravel的目录:
MVC中的V:
对应要请求的css及js:
路由:我们访问页面的网址
routes.php文件:
//比如:www.baidu.com/land/landmap
//route.php Route::get('/land/landmap', 'PageController@landMap'); // V:resources/views/land/landmap // C:app/Http/Controllers/PageController.php @landMap //PageController.php //public function landMap (Request $request) { ... }
MVC中的C: