[PHPTAL] Alias for macro path
Levi Stanley
levi at eneservices.com
Sun Apr 12 18:21:29 CEST 2009
$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}"
phptal at 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 at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20090412/45b35f28/attachment.htm
More information about the PHPTAL
mailing list