![]() |
Linking tpl's to php files.
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"} 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. |
I was working with this issue last week, finally I came up with a Simple Random Quote mod.
Take a look, it might guide you a bit: :arrow: http://forum.x-cart.com/viewtopic.php?t=8415 |
All times are GMT -8. The time now is 08:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.