new hooks, beforeRender afterRender

I just saw that beforeRender() and afterRender() were added to CController. I remember seeing something like this in Cake, but I can’t recall what the supposed benefits were. Can someone enlighten me?


In the after render you can filter wich script will be actually sent to the client.

This can be useful for avoinding sending more than once the script after render partial, for example.