Nah, sorry for being a little rude...
Enjoy cake community and don't use me and nate as params - we are a
little rude. - Sorry nate but you are... but I know it's your way of
doing things, just like me... not everyone has soft lips!

andbe sure to check my blog rafaelbandeira3.wordpress.com - and don't
forget to catch on my typos!!!!!

On 28 ago, 16:39, villalvilla <[EMAIL PROTECTED]> wrote:
> Sorry, I haven't seen your post clearly!
>
> I thought you put something like this:
>
> class xample extends appModel
> {
>
>    var $validate = array('name' => array(
>                                                                 
> 'regla1_nombre' => array(
>                                                                               
>                         'rule'    =>
> array('minLength','3'),
>                                                                               
>                         'message' => __('Minimum
> length of 3 characters',true)
>                                                                               
>                       )
>                                                        )
>                                );
>
> }
> > You can't define things with function in a class...
> > Oh man, go read php.net... come on...
>
> as you can see, i thought you were telling me that it was possible to
> call a function in the declaration of a variable in a class....
>
> Sorry for your loosed time, Rafa
>
> regards
>
> On 28 ago, 21:18, Rafael Bandeira aka rafaelbandeira3
>
> <[EMAIL PROTECTED]> wrote:
> > On 28 ago, 15:46, villalvilla <[EMAIL PROTECTED]> wrote:> Wrong!
> > > have you tried that?
>
> > Yes... as with any object in PHP...
>
> > > I have tried it before posting this, trust me, and due to the Model
> > > constructor specifications it fails!
> > > that's why i've done this hooking!
>
> > Are you nuts or something? Have you called parent::__construct()?
>
> > > Even more, if you go to the documentation page of the validation
> > > issue, it says there that you can't do the localization in the Model,
> > > it says that you must do it on the form helper!
>
> > You can't define things with function in a class...
> > Oh man, go read php.net... come on...
>
> > > regards,
> > > mike
>
> > Blah ;-)
--~--~---------~--~----~------------~-------~--~----~
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