This is what I would like to do:

private $validate = array();

public getValidate()
{
return $this->validate;
}

But I can't see how that would be possible (without modifying Cake
itself, that is...)


On 1 Okt, 16:17, AD7six <[EMAIL PROTECTED]> wrote:
> On Oct 1, 2:48 pm, stefanb <[EMAIL PROTECTED]> wrote:
>
> > The benefit would be encapsulation.
>
> > Yes, Cake is stopping me:
>
> > WHen I try to set $validate to private in my Category model, I get the
> > following error:
> > "Access level to Category::$validate must be public (as in class
> > AppModel)"
>
> I stand corrected ;), although there is a reason it's commented as
> public in that case (I would assume). Still doesn't stop you from
> creating getter setters and modifying the code appropriately to use
> them (if you must).
>
> Cheers,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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