[PHPTAL] Two sites with two identically named templates on one
server?
Dagfinn Reiersøl
reiersol at online.no
Thu May 10 14:18:30 CEST 2007
Just be careful, check whether the operating system deletes the contents
of /tmp at reboot. PHPTAL won't re-create the directories for you, and
you'll get a fatal error when PHPTAL tries to create files in a
non-existent directory.
David Schneider-Joseph wrote:
> You can do:
>
> /* site 1's index.zpt */
> define('PHPTAL_PHP_CODE_DESTINATION', '/tmp/site_1');
>
> /* site 2's index.zpt */
> define('PHPTAL_PHP_CODE_DESTINATION', '/tmp/site_2');
>
> On May 9, 2007, at 9:09 AM, .: smilelover :. wrote:
>
>> Hi,
>> I built 2 websites using my web engine that uses PHPTAL. Both sites
>> have a template called "index.zpt" and are served by one Apache, from
>> two different VirtualHosts. The problem is, that PHPTAL assumes both
>> index.zpt files to be one file and data in the template cache (in
>> /tmp) get mixed. I have content of one site in a template from the
>> other site. Is it possible to solve this by something else than
>> renaming one of the templates?
>>
>> Thanks,
>> Dan
>>
>>
>> _______________________________________________
>> PHPTAL mailing list
>> PHPTAL at lists.motion-twin.com
>> http://lists.motion-twin.com/mailman/listinfo/phptal
>>
>
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
>
More information about the PHPTAL
mailing list