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.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?