如何在php中包含css文件以隐藏文件夹结构


How to include css file in php for hiding the folder structure?

top.php

$smarty->assign('style_url',STORE_URL.'csscon.php?store='.STORE_ID);
$smarty->display(PATH.'top.tpl');

顶部.tpl

<link rel="stylesheet" href="{$style_url}">

csscon.php

include PATH.'css/'.STORE_ID.'/css/style.css';

如果查看视图源代码,它会显示所有的CSS样式,但并没有应用CSS。那么我该如何应用这种风格呢?

感谢

如果在css文件夹中放入一个名为index.html的空白页面,如果有人转到http://url/css/.