RE: [PHPTAL] Alias for macro path

2009-04-12 Thread phptal
Thanks Levi, that works well.
 
The documentation isn't very clear about PHP variables.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] Alias for macro path

2009-04-12 Thread Levi Stanley
$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


[PHPTAL] Alias for macro path

2009-04-12 Thread phptal
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