[PHPTAL] Two sites with two identically named templates on one server?

Michal Ludvig michal at logix.cz
Thu May 10 01:29:31 CEST 2007


.: 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?

 From http://phptal.motion-twin.com/manual/en/#id2504898 :

"""
To tell PHPTAL to store its intermediate PHP files other than in the
'/tmp/' directory :

<?php
define('PHPTAL_PHP_CODE_DESTINATION', '/path/to/somewhere/');
require_once 'PHPTAL.php';
?>
"""

HTH,

Michal
--
* Personal homepage: http://www.logix.cz/michal








More information about the PHPTAL mailing list