Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
question about smarty templates

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
sudhakararaog's Avatar
Computer Specs
Member with 75 posts.
 
Join Date: Sep 2007
Experience: Intermediate
19-Oct-2009, 12:05 AM #1
question about smarty templates
i have 3 template folders called template1 template2 and template3

in the index.php file when i use the following and access
http://localhost everything works fine and i am able to display the value of variables defined in index.php

$smarty->template_dir = 'c:/wamp/www/smarty/templates';


however when i change to
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template1';
or
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template2';
or
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template3';

and when i access http://localhost i am getting the output of
$smarty->template_dir = 'c:/wamp/www/smarty/templates'; where as i have made a small chane in the index.tpl for template1,2and 3 a simple line = template 1 and then followed by displaying the value of variables


why am i getting the output of
$smarty->template_dir = 'c:/wamp/www/smarty/templates/templates';

when i am changing the $smarty to
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template1';

i have cleared the cache and also tried
http://localhost?clearcache=1 and
http://localhost?clearall=1

however i still see the output of
$smarty->template_dir = 'c:/wamp/www/smarty/templates/templates';

please advice.

thanks.
sudhakararaog's Avatar
Computer Specs
Member with 75 posts.
 
Join Date: Sep 2007
Experience: Intermediate
19-Oct-2009, 06:14 PM #2
thanks for replying

when i type

http://localhost:81/smarty/templates
http://localhost:81/smarty/templates/template1
http://localhost:81/smarty/templates/template2
http://localhost:81/smarty/templates/template3

i see the a list of all the files and folders for each url. example when i type
http://localhost:81/smarty/templates/template1 i see index.tpl when i click this index.tpl i get an option to save the file and does not execute in the browser

also when i want to use template1 i use
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template1/';

and for template2 i use
$smarty->template_dir = 'c:/wamp/www/smarty/templates/template2/';

please advice.

thanks.
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:45 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.