I wanted to use __construct to have certain code run every time a
controller is loaded. But I've solved my own problem, and in case
anyone else is having a similar problem I'll post it here. Instead of
using __construct, I used beforeFilter(). Just remember not override
it in your controllers:
function beforeFilter(){
parent::beforeFilter();
}
On Aug 25, 3:56 pm, Miles J <[email protected]> wrote:
> Why would you just add a blank __construct(). It breaks the app
> because the parent constructs aren't called.
>
> Either remove it or do this:
>
> function __construct() {
> parent::__construct();
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---