This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Leading underscores

Requests for new symfony features.

Leading underscores

by rihad » Fri Oct 21, 2011 2:19 pm

Just started learning 2.0 after a long break from 1.0. Any thoughts of getting rid of leading underscores? They just look horrible:
Code: Select all
_welcome:
    pattern:  /
    defaults: { _controller: AcmeDemoBundle:Welcome:index }

and anywhere else in the code. It's a really awkward way of doing what a namespace generally would. Things were much better in Symfony 1.0 in this regard.
rihad
Faithful Member
 
Posts: 227
Joined: Sat May 05, 2007 1:39 pm

Re: Leading underscores

by halfer » Sat Oct 22, 2011 4:06 pm

I agree, it does look odd. But here is probably not the best place to raise it. Maybe on the devs mailing list?
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Leading underscores

by rihad » Sat Oct 22, 2011 4:24 pm

Thanks, I've just posted it there. It will appear as soon as moderators approve it.
rihad
Faithful Member
 
Posts: 227
Joined: Sat May 05, 2007 1:39 pm