See: http://www.dom111.co.uk/blog/coding/cakephp-components-redirect-fail-on-my-part/171
Then see: http://book.cakephp.org/view/65/MVC-Class-Access-Within-Components
The answer:
For reasons which are explained in the above two articles, components that wish to use redirect need to include the following callback function in their component:
function beforeRedirect(&$controller, $url, $status=null, $exit=true) { }
Kinda weird, huh?
Yeah, I knew you'd agree.
No comments:
Post a Comment