RE: [SMARTY] Re: reading php and tpl files from somewhere else (windows) - a bitlong

"George Pitcher" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
Pete,

Thanks - I've had a look at what you have mounted and I'm not sure it solves
my problem.

Firstly, your setup assumes that Apache is being used - I'm on IIS, but
could move to Apache if that really does solve the problem.

It's not just the templates I want to share - its the php scripts as well.
Ideally, I'd like an additional line in Smarty's configuration that asks
where the php scripts are.

I have tried a workaround by putting a short php file in my client directory
for each php file called from the 'shared' folder. This short file calls a
file that holds the paths and then calls the shared file for that page.
Great in theory - but doesn't work.

Oh well, I'll keep digging.

George

> -----Original Message-----
> From: Pedro [mailto:[email protected]]
> Sent: 19 August 2005 3:36 pm
> To: [email protected]
> Subject: [SMARTY] Re: reading php and tpl files from somewhere else
> (windows) - a bitlong
>
>
> Very Interesting
>
> This is a site I'm working on in spare time and the bottom of the page
> might help..
> http://smarty.daffodil.uk.com/smarty_starter/index.php?page=install
>
> Its WIP and unofficial ..
>
> pete
>
>
>
>
> George Pitcher wrote:
> > Hi all,
> >
> > Almost all of my 12 sites use Smarty - and its great.
> >
> > However, 7 of these are pretty much identical in terms of
> templates and php
> > code. The differences are in the database connection, customer
> logo and some
> > of the wording used in system generated emails etc. I handle these using
> > includes and a config file. I'm hoping that more customers sign
> up for my
> > service and would like to simplify my maintenance of these sites.
> >
> > A typical site structure would look like this:
> >
> > WEBFOLDER
> >   all php and html pages (91 and 2 respectively)
> >   INCLUDES folder with config file, function file and other site related
> > docs (javascripts, Word templates etc)
> >   IMAGES folder with customer logos
> >   TEMPLATES folder with 78 templates
> >   TEMPLATES_C folder for built templates
> >
> > I would like to split this so that it looks like:
> >
> > WEBFOLDER
> >   INCLUDES
> >   IMAGES
> >   TEMPLATES_C
> >
> > SHARED FOLDER
> >   all php/html files
> >   TEMPLATES folder
> >
> > I'm currently using IIS for most of these sites on NT4 and two
> sites are on
> > Apache2 on NT4 and the company policy is to upgrade server
> software to Win
> > 2003 Server by the end of 2005 (seeing will be believing).
> >
>
> > Can anyone suggest a method of achieving my desired objective?
> I'm happy to
> > look at non-Smarty suggestions such as including folders, if that is
> > possible.
> >
> > MTIA
> >
> > George in Oxford
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.