The best way to load models into components is to go through the controller and use loadModel ()
In your component configure initialize ()
function initialize($controller, $settings) {
$this->Controller =& $controller;
}
Then in your component function use loadModel to load the model
$this->Controller->loadModel('Modelname');
$this->Modelname->save($data);
as well as for the search term
$users = $this->Modelname->find('all', array(
'conditions' => array(
'User.studio_id' => $studioID,
'User.usergroup_id' => 5
)
));