I am having trouble linking my tpl's to my php files.
Say I have a customer/main/name1.tpl
In the customer/home_main.tpl all I need to do is add
Code:
{elseif $main eq "name1"}
{include file="customer/main/name1.tpl"}
and in the php file I want that tpl to use add
Code:
$smarty->assign("main","name1");
Then that tpl should work off that php file right? Thats what I have and it doesnt work. If I put my tpl code in categories.tpl and my php code in categories.php all my codes work though so I am assuming its a linking issue and not a coding issue.
Please let me know if I am missing something this has been troubling me for like a week now and I cant seem to find the solution anywhere. I have searched online, on this forum and the smarty manual and I cannot find it anywhere.