Monday, October 29, 2012

Custom functions on Models are not working

Hi All,
I am trying to create a project using cakephp 2.2. On my local xaamp it is working fine, but on my server it shows like models are not included. For exampla, the searchprojects function defined on model user and if I am calling the function from users controller like $this->User->searchprojects();, it is returning an error like error in mysql version or syntax near by SQL Query searchprojects. The users model is a has many relationship to user address table also, but using paginate, it is returning the data of master table(user table) only not the child tables(user_address). Can you please help me to fix this issue.

Thanks and Regards,
Jipson Thomas

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: