Cakephp Model usage

QuestionsCakephp Model usage
Sridhar asked 8 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 8 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

8 + 17 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?