저는 최신 개인 프로젝트에 smarty를 사용하고 있으며 문제가 있습니다. 위의 차종이 디렉토리에서 파일을 .tpl로드Smarty 리소스 디렉토리
$smarty = new Smarty;
$smarty->template_dir = 'templates/dashboard/';
이 나를 위해 잘 작동하지만, .tpl 안에 내가 이미지를로드 할과 내가해야 할 :
<img src="templates/dashboard/images/avatar/full/{$user->username}.jpg" class="profile-avatar img-thumbnail">
을 내가 뭘 난이도 변경 것 template_dir의를 설정할 때 내가 문질러서
<img src="images/avatar/full/{$user->username}.jpg" class="profile-avatar img-thumbnail">
하지만 ...하지 내가 변경할 수있는 내가 어떤 문서를 찾을 수 없습니다을 수행 할 싶지만 작동하지 않습니다 것은 th를 위해 전자 .tpl 파일.
참고 '템플릿/대시 보드', 그건 내가 제일 먼저 당신이 당신의 템플릿이 같은 폴더에 이미지를 넣어 안되는 .tpl