beforeFilter(): beforeFilter function run before every action in the controller. It’s the right place to check for an active session or inspect user permissions.
beforeRender():beforeRendor function called after controller action logic but before the view is rendered. This function is not often used, but may be required If you are calling render() manually before the end of a given action.
afterFilter(): afterFilter function called after every controller action but after rendering is done. It is the last controller method to run.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
beforeFilter(): beforeFilter function run before every action in the controller. It’s the right place to check for an active session or inspect user permissions.
beforeRender(): beforeRendor function called after controller action logic but before the view is rendered. This function is not often used, but may be required If you are calling render() manually before the end of a given action.
afterFilter(): afterFilter function called after every controller action but after rendering is done. It is the last controller method to run.