Add this instead of yours in the php file.
$smarty->assign("main", "iesearch");
This line is used to say, what tpl need to be used for this particular php file.
check it now.
Quote:
Originally Posted by AMMoyer
Here's what I added to common_templates.tpl:
Code:
{* $Id: common_templates.tpl,v 1.46.2.7 2007/03/28 12:48:59 twice Exp $ *}
{if $main eq "last_admin"}
{include file="main/error_last_admin.tpl"}
{elseif $main eq "iesearch"}
{include file="mmy.tpl"}
{elseif $main eq "product_disabled"}
{include file="main/error_product_disabled.tpl"}
........
And the line I currently have in my PHP file is
$smarty->assign("main", $iesearch);
My tpl file is in the skin1 folder while the php file is in the root xcart folder. Is this the issue? I really do appreciate the help
Adam
|