News for hackers. Stuff that matters.
Re:Tania – PHP-based free and open source farming management... by cdevs on Friday July 14, 2017 @12:16PM (#14770951)
At the least Nice site for any one looking to see a symphony example. I don't use symphony and despite liking most of the code I still hate the idea developers hand typing routes and that's my main selling point for something barebones like code igniter or some other automated routing process like a json-rpc API that can figure out what controller to go to on it's own.
Re:Tania – PHP-based free and open source farming management... by thaiphanvevo on Friday July 14, 2017 @01:20PM (#14771451)
I disagree. That's too magic for my liking. I like Laravel's routing solution where you have to manually map a route to a controller action. You can set route groups and restrict middleware to specific routes and stuff so pretty powerful!
Re:Tania – PHP-based free and open source farming management... by wolco on Friday July 14, 2017 @05:39PM (#14773414)
Laravel's routing and the entire framework makes it impossible to go back to CI.
Re:Tania – PHP-based free and open source farming management... by breadmaster on Friday July 14, 2017 @01:05PM (#14771317)
That's what I like about Symfony. It's all in my hands to configure.
Re:Tania – PHP-based free and open source farming management... by emodendroket on Friday July 14, 2017 @03:22PM (#14772452)
I don't understand that philosophy. Isn't the ideal that the default is something sensible and you only change it if you want different behavior?
Re:Tania – PHP-based free and open source farming management... by ivanhoe on Friday July 14, 2017 @12:43PM (#14771175)
and when you need to rename a single route you do what, rename the whole controller and/or method?
Re:Tania – PHP-based free and open source farming management... by acomjean on Friday July 14, 2017 @01:21PM (#14771459)
I guess you can use a micro framework, I Use silex. They're much less opionated. It's built with a synfony components so it's very similar (I think it's the same people).
Re:Tania – PHP-based free and open source farming management... by prodikl on Friday July 14, 2017 @01:11PM (#14771372)
exactly, that's the downside to it.

it's really nice to have /controller/method/param/param routing out of the box, so the speed of 0 to MVP is quick, but on the other side, renaming a route sucks. unless you have a list of overrides in which case, may as well just use hand written routes from the get go