up vote 0 down vote favorite
share [g+] share [fb]

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

link|improve this question

1  
How nice of you to give us the error message you get ... – NikiC Aug 5 '10 at 17:34
This line looks good. – Mike Aug 5 '10 at 17:35
Great, i refreshes it to show you the error.... and the error is gone.... It means that i have to go to bed ... NOW. sry guys for that. – Tristan Aug 5 '10 at 17:38
feedback

3 Answers

up vote 0 down vote accepted

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

link|improve this answer
feedback

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.

link|improve this answer
Could be using mod_rewrite or something similar. – Chris Aug 5 '10 at 17:38
yeah i think it's due to symfony (framework) – Tristan Aug 5 '10 at 17:44
feedback

end it with a semi-colon ;

link|improve this answer
1  
That's not necessary. – Mike Aug 5 '10 at 17:35
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 Aug 5 '10 at 17:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.