Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
question about smarty templates

Reply  
Thread Tools
sudhakararaog's Avatar
Computer Specs
Senior Member with 117 posts.
 
Join Date: Sep 2007
Experience: Intermediate
19-Oct-2009, 01: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
Senior Member with 117 posts.
 
Join Date: Sep 2007
Experience: Intermediate
19-Oct-2009, 07: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

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:39 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.