How can i make this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sathumenon
Forum Newbie
Posts: 5
Joined: Wed Mar 08, 2006 3:02 am

How can i make this?

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
LG-2
Forum Newbie
Posts: 7
Joined: Mon Feb 20, 2006 11:21 am

Post 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.
sathumenon
Forum Newbie
Posts: 5
Joined: Wed Mar 08, 2006 3:02 am

Hello

Post 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 :D

Regards
Sathish
Post Reply