Just been looking at the following article and had a few question as to why a few things are why they are which breaks backwards compatibility and some in what seems like needlessly.
https://github.com/y...rade-from-v1.md
Why does the render method work in this way, the way it worked before was fine and if someone wanted to return the output there was an option to return the output if needed. I quite liked not having any echos in my controllers.
this seems a little pointless it opens up more options for errors as the syntax has become more complicated (i’m sure theres some people who don’t know where pipe is on the keyboard…??). Having it take two separate params was easier to interpret, broke the method if not done right (which is preferred as now it introduces a silent error (maybe, need to look at the method?)). I’ve also in the past overloaded this method and used the category field to do certain checks in certain instances which now has added an extra step.
I would prefer if this method at least supported both methods. Also Yii::t() is probably one of the most common methods in any large translated site and having to update all these methods is a pain if updating a project from 1.1.