0
我正在使用smarty进行最新的个人项目并遇到问题。Smarty资源目录
$smarty = new Smarty;
$smarty->template_dir = 'templates/dashboard/';
以上品牌从此目录载入.tpl文件,这对我的作品很大,但里面.tpl我想加载图像,我所要做的:
<img src="templates/dashboard/images/avatar/full/{$user->username}.jpg" class="profile-avatar img-thumbnail">
我想这样做,但将无法工作是:
<img src="images/avatar/full/{$user->username}.jpg" class="profile-avatar img-thumbnail">
当我设置template_dir模板,这也将改变我因子评分,但不... 我找不到任何文件,我可以改变这个向前e .tpl文件。
注意“模板/仪表盘”,这就是我想要的.tpl