Unable to save data in database manually and get latest auto increment id, cakePHP
- by shabby
I have checked this question as well and this one as well. I am trying to implement the model described in this question.
What I want to do is, on the add function of message controller, create a record in thread table(this table only has 1 field which is primary key and auto increment), then take its id and insert it in the message table along…