He shouldn't need to create his own __construct() no matter what. Any
custom code can be placed in beforeFilter(), since its called right
after construct anyways.

On Feb 4, 2:12 am, euromark <[email protected]> wrote:
> you have to distinguish between php5 code itself and framework related
> callbacks
> they have nothing to do with each other
>
> if you need to override any of the above you should always call the
> parent
>
> parent::__construct()
>
> and
>
> parent::beforeFilter();
>
> etc
>
> On 4 Feb., 08:46, Miles J <[email protected]> wrote:
>
> > beforeFilter() isn't a constructor. Its just a normal method, which is
> > used as a callback.
>
> > You should never overwrite the constructor as it has important code.
> > That's what the callbacks are for, to define custom code to not
> > conflict.
>
> > Also, this has nothing really to do with PHP 4 or 5, its a
> > architecture setup.
>
> > On Feb 3, 11:37 pm, Okto Silaban <[email protected]> wrote:
>
> > > Can I refere to a complete documentation how can I work with strict
> > > PHP5 on CakePHP?
>
> > > For example : Can I remove beforeFilter() and use __construct() instead ?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to