url_for() bug

35 views
Skip to first unread message

ulrich palou

unread,
Mar 9, 2013, 7:05:10 AM3/9/13
to Limonade
Hello all,
I'm student, and i just tryed limonade framework.
I did a part of my project with friends on an other computer and when
i try to modify it on mine, i can't test it.
The url_for() methods aren't understood .
When i go on a page, links don't work because they have this format :
<a href="<?= url_for('/') ?>">test</a>
If i understood well the doc, if my option_uri() is good and if my
dispatch functions work, this link have to link me on the home page.
But, it doesn't work. I think my wamp need some extends but i don't
know which one.
( to precise, the same project, with same source code and the same
files tree -> /iut/php_project ).
An information more, this error make my css down ( it can't load it
with these broken url ).
If anyone can help me, i think thats just a configuration problem.
Thanks for any help

Fabrice Luraine

unread,
Mar 11, 2013, 1:17:03 PM3/11/13
to limo...@googlegroups.com
If your rendered HTML contains


    <a href="<?= url_for('/') ?>">test</a>

it means that your PHP code isn't interpreted. You can try with

          <a href="<?php echo url_for('/') ?>">test</a>
Reply all
Reply to author
Forward
0 new messages