function autocomplete(){
$this->layout = "ajax";
//*************
$this->User->unbindModel('Message');
$this->Message->unbindModel('Message');
//************************8
if(empty($this->params['data'])){
echo "DaTA EMPTY";
}else{
$data = $this->User->findAll(" User.username LIKE
'%{$this->data['Message']['to']}%' ",null,null,null,null,0);
$this->set('tags', $data);
}
}
but it isnt work, this controler still loading data from message model,
its very faking no logic becouse, i want only user data witch recursive
0 on page i see faking data from message model WRRR ! HELP
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---