Hi,

Yeah, that is ok! But, if my webdesigner uses a wysiwyg editor (e.g
Dreamweaver), he won't can see the template like it´s realy because
stylesheets path´s are relative.


On Wed, Mar 18, 2009 at 2:30 PM, Kornel Lesinski <kor...@aardvarkmedia.co.uk
> wrote:

> 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:
>
> private/tpl/template.xml
> public/index.php
> public/css/style.css
>
> 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).
>

-- 
Daniel Lima
Web Developer
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to