beforeRender and afterRender
Posted 01 April 2013 - 01:08 PM
I wouldn't be able to do that by using the beforeAction or afterAction events. Would I?
Posted 01 April 2013 - 01:23 PM
There's also a difference; There might be actions that doesn't render things in the common way and in these cases you might not want your beforeAction/afterAction to apply, hence being able to use beforeRender/afterRender in these cases might be good.
I'm thinking there are enough use cases to preserve these events after all.
Posted 03 April 2013 - 05:52 AM
I wonder if buffering output could interfere with nested output buffering, e.g. I think Yii clips use output buffering. May be more Yii methods use output buffering during the render phase, not sure...
Sorry, I don't understand what you mean here. Could you explain please?
Posted 15 April 2013 - 03:48 AM
I was thinking about using beforeRender or afterRender to insert some extra content to larger group of my views (not all of them, but a significant number, among different controllers). But this path turned out to be wrong. I think behaviors will be better.