I want to use my model as input for the query in Cakephp.
Please give me any suggestions regarding this.
Cakephp models is not required (or you can say, not supported). The control internal uses mysql_query functions to perform database operations (bypassing the framework model part).
In order to use active database connection of cakephp, just skip the lines of mysql_connect and mysql_select_db. it will auto-use last active connection.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!