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
$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 t
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
_
To follow up my own posting, I've found it's possible to get the W3C
validator to accept tal: and metal: attributes by using a DOCTYPE that
points to a custom DTD. It's not ideal as you have to specify each
combination of element and attribute that you have actually used. However it
does work and a