Posted by Rik on 07/04/06 10:15
J Huntley Palmer wrote:
> Whenever I put in a smarty variable in a link definition as :
>
> <a href="{$foo->bar}">foo</a>,
>
> it shows up as a literal as above in the link and not the contents of
> the variable itself. Everywhere else in the template .. variable
> substitution works fine.
Turn on error_reporting(E_ALL).
If $foo->bar doesn't exist it will give you an error of E_NOTICE level. If
it does exist, I wouldn't know with this little piece what the problem could
be.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|