Hello all,

This is my first mail in PHPTAL-Mailinglist :)

1. I love it.
2. I love it.
3. It produces a strange Fatal Error:
---
Fatal error: Cannot redeclare
tpl_1242900170_1_1_16linklists_htmlaccf05c466750e258e18f139a5a979fc_standard()
(previously declared in
/tmp/tpl_1242900170_1_1_16linkLists_htmlaccf05c466750e258e18f139a5a979fc.php:2)
in
/tmp/tpl_1242900170_1_1_16linkLists_htmlaccf05c466750e258e18f139a5a979fc.php
on line 87
---

This error occurs when I try to load this macro (it's inside a file
called linkList.html):
---
<ul class="linkList" tal:comment="Linkliste" metal:define-macro="standard">
    <li>
        <a tal:attributes="href php:buildSiteUrl('team')" title="Team
anzeigen">
        Team
        </a>
    </li>
    <li>
        <a tal:attributes="href php:buildSiteUrl('about')" title="Über uns">
        Über
        </a>
    </li>
    <li>
        <a tal:attributes="href php:buildSiteUrl('portfolio')"
title="Portfolio öffnen">
        Portfolio
        </a>
    </li>
</ul>
---

There are no variables used but 'php:' <- did I apply it wrong?

buildSiteUrl() returns an URL as string (already tested, so e.g. first
param 'team' would return 'contents/?site=team')

What did I do wrong?

Greetings from Switzerland

Dominique

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

Reply via email to