Hi,
I want to use my model as input for the query in Cakephp.
Please give me any suggestions regarding this.
Regards,
Sridhar
1 Answers
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.
Your Answer