Hi,
1.
Quote:
How does the info from the search form know where it's getting posted too?
|
form action tag will say where to post.
2.
Quote:
how can I trace the path?
|
They will link the php and tpl file using the smarty variables.
EX:
PHP->
you can find the smarty variable in each php file like this
$smarty->assign("main","search");
TPL:In common templete
There will be file called common_templete.tpl in skin1/root
like this
{else if $main eq search}
{include file="tpl file name"}
Quote:
Originally Posted by AMMoyer
I'm in the midst of building a new template and trying to understand how the tpl files link to the php files they are associated with. For example, I look at search.tpl in the main directory (there are 3 others and 2 of them may be the same?) and there is no less than 4 search.php files located in various places.
I guess my main question is: How does the info from the search form know where it's getting posted too? Or how can I trace the path?
If I have a new tpl file located in skin\, where should the corresponding PHP file be located?
Thanks,
Adam
|