简体   繁体   中英

routing in laravel 4.2 loads page but doesn't load styles

when i am using laravel 4 routing as

Route::get("/home", "HomeController@showHome"); 

it works fine but when i am using routing as

Route::get("/home/about", "HomeController@showHome"); 

it loads page but doesn't take css and javascript.i tried using named route as

Route::get("/home/about" array(
'as'=>'home', 
'uses'=>'HomeController@showHome'));

this doesn't work either, it also loads page without styles.

使用CSS代码,如下所示:

{{ HTML::style('css/css.css'); }}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM