Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Using a default template directory
I would appreciate any ideas on how best to approach the following:

I have several sites running on a same server based around a home-grown CMS
using Smarty. The sites tend to be similar, but occasionally a change is
needed to the template for a particular site. At the moment, I have a folder
for the full set of templates for each site. However, this is a pain if I
want to make a 'global' change.

I have a config file that specifies the templates directory when a page is
loaded, which is then used by the Smarty sub-class constructor. What I would
really like though is to be able to specify both a 'default' and a
'specific' templates directory, such that Smarty would first check for the
template in the specific directory, and if it was not found use the default.

I know that I could do this at the PHP level with a PATH directive, but I
don't want to go this way.

Thanks for any tips,

Benjamin

Report this thread to moderator Post Follow-up to this message
Old Post
Benjamin Sims
03-19-04 06:28 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:05 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.