Re: [SMARTY] using smarty across many projects
| From: | Bertrand DUNOGIER | Date: | Wed, 15 Jan 2003 08:00:35 +0000 |
| Subject: | Re: [SMARTY] using smarty across many projects | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7182@lists.php.net to get a copy of this message | ||
JE> do i need a separate group of dirs (template_c, config, cache etc) for each
JE> site? will it keep all the index.php templates separate for the different
JE> sites?
Yes, you do. You will usually have files over separate sites with the same name,
so you would get conflicts.
JE> i'd like to make one dir with a link from each of the domains to the same
JE> smarty/ directory to make things simple. or will this make it tougher?
For the smarty files (the classes), the best way is probably to install Smarty
in a general directory (e.g. on linux /usr/local/lib/php), and add this
directory to the include path of the sites you want to use smarty in.
Bertrand