$template->set('int', '/var/www/html/_s/int.html/m');

or

$template->int = '/var/www/html/_s/int.html/m');

within the phptal doc:

metal:use-macro="${int}"


php...@jakeman.plus.com wrote:
>
> I want to shorten a path
>   metal:use-macro="/var/www/html/_s/int.html/m"
> but don't know how.
>
> I tried
>   metal:use-macro="php: int"
> with a line in the PHP as
>   $template->int = "/var/www/html/_s/int.html/m";
> but this errors with a message 'Macro 'php: int' is not defined'
>
> Any advice?
>
> Thanks
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>   

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

Reply via email to