cakephp/cakephp — pull request #555 by xemle (2012-03-11 10:53:46+00:00)
Title: Fix order of beforeRender event

According to the documentation beforeRender of components is called
after beforeRender of the controller. The fix changes the priority
of controllers event beforeRender to 9.

Test ControllerTest::testComponentBeforeRenderEventBeforeController()
ensures this order.

See also http://book.cakephp.org/2.0/en/controllers/components.html#Component::beforeRender