Hardcoded href for navbar, base.php:base_url should be used
dotkrnl opened this issue · comments
Jason Lau commented
In application/config/base.php 'base_url' => '/new/'
Got hardcoded <li class="active"><a href="/">Home</a></li>
in application/views/layout.php
在 application/config/base.php 中配置了 'base_url' => '/new/'
。
但由于 application/views/layout.php 中硬编码了 <li class="active"><a href="/">Home</a></li>
而无效。
Jason Lau commented
And asset files (css, js) are hardcoded too.
资源文件 (css, js) 也被硬编码了。
freefcw commented
我想办法解决一下
freefcw commented
试试新的代码,我做了改变