On 18 Mar 2009, at 16:55, Daniel Lima wrote:

The script run normaly, but wihout images, css, js, etc...
Am I obliged to put "TPL" folder to "ADMIN" root directory?

Not at all. It's best to put PHPTAL templates outside document root (where they are inaccessible to browsers). Paths given to PHPTAL class are relative to script's current directory, e.g. given:


script in public/index.php will need to use PHPTAL("../private/tpl/ template.xml"), and template may use href="css/style.css" to refer to stylesheets (CSS/JS paths in templates are relative to page URL that browser sees).

regards, Kornel

PHPTAL mailing list

Reply via email to