简体   繁体   中英

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');

top.tpl

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

csscon.php

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

If see the view source code, it shows all the CSS styles, but it's not applying the CSS. So how can I apply this style?

Thanks

如果您在css文件夹中放置了一个名为index.html的空白页,则如果有人访问http:// url / 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