Jump to content

[Cakephp] difference between beforerender and beforefilter?


alvin567

Recommended Posts

From the CakePHP Cookbook

 

  Quote
Controller::beforeFilter()

This function is executed before every action in the controller. It’s a handy place to check for an active session or inspect user permissions.

 

  Quote
Controller::beforeRender()

Called after controller action logic, but before the view is rendered. This callback is not used often, but may be needed if you are calling render() manually before the end of a given action.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.