View Single Post
  #1  
Old 01-26-2004, 07:11 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default 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"} {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.
__________________
Gibberish
[Unix] X-Cart 4.0.12
Reply With Quote