Re: $smarty->assign("main", "home"); how it goes to home.tpl
func_display("customer/home.tpl",$smarty); says to display skin1/customer/home.tpl
skin1/customer/home.tpl will include skin1/customer/home_main.tpl which looks at the value of "main" to decide which other template to include. "main" is set by the $smarty->assign("main", "home"); statement.
The $smarty object is the smarty templating engine - its what makes he pages display so you must have it.
So to display the page you would put these statements in your php:
$smarty->assign("main", "register1");
func_display("customer/home.tpl",$smarty);
Then tweak skin1/customer/home_main.tpl to check for "main" equal to register1 and include your new template.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]
UGG Boots and other fine sheepskin products
http://www.snowriver.com
|