I see from the error message, that you are making the find in your users controller! Assuming that your users controller is using the User model, the correct find statement should be:
[code] $this->User->find( ... [/code] Try changing your find statement, leaving out the Detail model! If it still fails, please include the code for the model associations and the controller in which you are making the find. Enjoy, John On Jan 19, 8:01 am, John <[email protected]> wrote: > hello John > thanks for the reply but its showing an error > > Notice (8): Undefined property: AppModel::$User [APP/controllers/ > users_controller.php, line 3493] > > Fatal error: Call to a member function find() on a non-object in /var/ > www/Forex24/app/controllers/users_controller.php on line 3493 > > associations are defined . so can i bind the model in controller only. > > thanks > [snip]
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
