tags:

views:

34

answers:

3

Hello, firstof all, i excuse in advance, this error may be a simple one. But i slept like 4 hour this night... :'(

<?php echo url_for('@news_read/id=?'.$news_item->getId()) ?>

outputs a syntax error and i don't see where it is (i wouldn't see an elephant right now...)

Thank you

A: 

end it with a semi-colon ;

stillstanding
That's not necessary.
Mike
this isn't required. The last semicolon may be omitted if you close the `<?php` tag (i.e. you can't omit both the semicolon and the closing tag.)
nikic
A: 

Shouldn't it be (at least give it a try)

?id=

Normally that's how you pass variables on an URL but I don't quite get your syntax.

Eton B.
Could be using mod_rewrite or something similar.
Chris
yeah i think it's due to symfony (framework)
Tristan
A: 

issue fix after clearing the cache. Sry for disturbing you.

Tristan