Hi,

I'm using the check box helper for HABTM that is found here on the
bakery:

http://bakery.cakephp.org/articles/view/create-multiple-checkboxes-instead-of-a-multiple-select-in-your-views

Adding HABTM to the database doesn't seem to be a problem but on edit
I get this error in my controller:

Fatal error: Call to undefined function: _selectedarray()

The code that I'm using is:

function edit(($id = null)) {
    if(empty($this->data)) {
        $this->data = $this->Article->read(null, $id);
        $this->set('consoles', $this->Article->Console-
>generateList());
        if(empty($this->data['Console'])) { $this->data['Console'] = null; }
        $this->set('selectedConsoles', $this->_selectedArray($this-
>data['Console']));
    }
}

I'm using version 1.1.8.3544

I'm sure thats the problem but what can I use as in alternative to
$this->_selectedArray() in 1.1.8.3544?

I'd appreciate any help on this...

Thanks...


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