Re: [SMARTY] Pulling templates from remote location
| From: | Monte Ohrt | Date: | Wed, 12 Jun 2002 15:37:10 +0000 |
| Subject: | Re: [SMARTY] Pulling templates from remote location | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4806@lists.php.net to get a copy of this message | ||
This is all totally up to how you want to do it.
You can NFS mount your servers and use a shared directory path to the "central" templates, or you can go as far as making a custom resource function and getting them that way.
As for templates_c, you can have each server have their own (probably fastest), or you can make a shared one, just be careful about network latency, resource locking, etc.
If you share one $compile_dir with multiple $template_dir's, you will want to use a unique compile_id for each one so same-named templates don't squash each other.
Sean Chambers wrote:
I know this probably a simple answer but I cant get it: All I want to do is to pull tpl files (my html templates) from a central server location. I have about 10 websites that will be pulling from this central template location. Can I just give smarty the full path to this directory? Also, if I move the templates/ directory to a central location can I do the same with the templates_c and cache directories or is it easier to make a unique cache and templates_c per each site? Thank you for your time. Sean Chambers Web Developer Vann Data Technology Centre Daytona Beach, FL (386) 238-1200 ext. 1205 chamberss@vanndata.com-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.