Going nuts over something so simple not working I hate to even ask.

public function manage_delete() {
        if ($this->RequestHandler->isAjax()) {
                $avatar = $this->Avatar->__getImageInfo( $this->owner_id );
                $this->Avatar->deleteAll( array( 'id' =>
$avatar['Avatar']['id']), false, false );
                //$this->Avatar->delete($avatar['Avatar']['id']);
                $this->render( $this->AutoElement('avatar_empty'), 'ajax');
        }
}

Link is clicked fine , I have an alert in the js with the view response so
it goes thru just never hits the database If I echo out $avatar in the index
function since delete is just called from a link on index I can see there
data is correct inside. The db has the record. Tried delete /
deleteAll...clueless.

Thanks,

K

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to