This topic is locked

How Templates Work?

6/23/2007 8:20:30 AM
PHPRunner General questions
G
Gidget author

If I have a file, ...list.php, it looks at ...list.htm for the template. Let's say i want to have an alternate display template - one some pages it would be list.htm and on another it would be list2.htm. I created a second php file but it looks at the same .htm template, and I don't see where the php/htm relationship is managed.

Sergey Kornilov admin 6/23/2007

The last line in ..._list.php file:

$smarty->display("cars_list.htm");