What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 122 Stack Exchange communities.

The offending question is How to get current route in Symfony 2?

Every Some answer suggests the use of _route and it works in most cases, really - I personally also use that solution.

Until I found that it isn't work in one case (if the request is forwarded from another controller, _route is null). I do a google and I find something worse.

https://github.com/symfony/symfony/issues/854

As fabpot (Symfony developer) said

You should never rely on the _route. It's only available for debugging purpose.

And I am puzzled of what I should do in this case. I only have 30 rep and cannot comment and such...

And I don't know the "correct" way of solving the question itself.


So I re-read all the answers. Indeed there are better answers that avoid request.attributes.get('_route') (which I think what fabpot in that github issue talks about) and are (officially) documented in some way.

I don't upvote those because I would like to check myself before doing so, but I don't have Symfony nearby at the moment.

At the moment, it seems that I could treat this case as incorrect answer(s), and I could just go check FAQs for that.

Anyway, at least I know what to do now :) About the rep thing, it just takes time. lol.

share|improve this question
3  
No, you don't flag incorrect answers. You downvote them. –  Mysticial Nov 10 '12 at 6:45
    
I cannot downvote! Did I mention I don't have enough reputation? –  luiges90 Nov 10 '12 at 6:51
8  
Then you need to earn enough rep so that you can. –  Mysticial Nov 10 '12 at 6:54
2  
you should also write your own answer to the question. If it is correct, then it will get some upvotes, at which time you'll earn enough rep to then comment on the others –  psubsee2003 Nov 10 '12 at 10:04
add comment

2 Answers

up vote 8 down vote accepted

The way to go about it is to downvote the answer & optionally mention the reason for the downvote.

Since you don't have enough reputation to comment or downvote, you can

  • Try posting an answer on a question that's not been answered/ hasn't received much attention
  • Have a look at some questions on the homepage & see if you can edit some questions/answers and fix them. Each suggested edit, when approved gives you +2 rep (to a limit of 1,000) & you can earn some rep this way, enough to drop a comment.
share|improve this answer
1  
He can't downvote either, it's a 125 privilege. –  Second Rikudo Nov 10 '12 at 10:18
2  
@MadaraUchiha never claimed he can, just mentioned what the expection of a wrong answer is. –  Sathya Nov 10 '12 at 10:19
add comment

Well, there are 2 general ways to go about this:

  1. Get some reputation. Commenting requires 50 rep. Downvoting requires 125. I had both of these privileges on my first day. Not that difficult. Ask, answer, suggest to edit.
  2. Bring the question to the community's awareness by
    1. Posting it here on meta with a tag.
    2. Going to chat with it (talking requires 20 reputation, which you have), and discussing it there.

Good luck!

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .