Page 1 of 1
How can i make this?
Posted: Wed Mar 08, 2006 3:07 am
by sathumenon
Hello
recently i saw a site
http://www.ishopvegas.com/Henderson/Index.tpl?cm=HE
wondering how this .tpl is called in the browser. Can we do the same in php?
any useful resource available?
regards
sathish
Posted: Wed Mar 08, 2006 4:29 am
by s.dot
yes you can do the same in php
what is a .tpl? template?
if so, they might not have used a template, it could just be direct output from sql queries/html pages.
Posted: Wed Mar 08, 2006 5:34 am
by LG-2
Why not use
Code: Select all
<?php
if $page = "" {
include = "home.tpl";
} else {
include = "$page.tpl";
?>
That in the URL would look like
http://example.com/index.php?page=yourpage and where the code is it will load the TPL.
and index.php will load your normal home.tpl page.
Hello
Posted: Wed Mar 08, 2006 5:36 am
by sathumenon
Thanks for the replies!
I am trying to run a .tpl file first of ..if it works.. will get back to U..
And if it not works.. still I will hav to be here
Regards
Sathish