You can try this:
$this->Member->invalidate('username', 'must be between 3 to 20
characters.');

On Oct 26, 10:03 pm, MoD <[EMAIL PROTECTED]> wrote:
> Hello everyone!
> I'm currently developing a project using CakePHP version 1.2.0.5875
> pre-beta though I'm also familiarizing myself with it. I used a
> TreeBehavior for categories module. Everything seemed ok, until I
> didn't start using this behavior's own public methods - any method I
> try to call from controller returns error. For example:
> "Fatal error: Call to undefined function: generatetreelist()"
> That is the way I connected behavior to the model:
> "class Category extends AppModel
> {
>         var $name = 'Category';
>
>         var $actsAs = array('Tree');
> ...}"
>
> And that's how I called it from controller:
> "$categories = $this->Category->generateTreeList(null,
> '{n}.Category.id', '{n}.Category.title');"
> And that happen with just any public method in any behavior though
> each behavior was surely loaded and before* methods in them work fine.
> What am I missing?
>
> Thanks in advance.
>
> P.S.
> By the way, API documentation on TreeBehavior is different from what
> is actually in the source.


--~--~---------~--~----~------------~-------~--~----~
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