Cakephp Model usage

QuestionsCakephp Model usage
Sridhar asked 7 years ago

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
Abu Ghufran answered 7 years ago

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

19 + 1 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



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!