The beforeRender is within the controller so you can access it using $this. If you want it to call only within a specific controller, then use the beforeRender within a single controller and not within the app_controller.
Hi. My name is Jonathan Snook and this is my site. I write about what interests me, which is usually web design, development, and technology. I'm also in the middle of a food adventure and I like whisky.
I wrote SMACSS. I tweet. Want to learn more?
© Jonathan Snook