Hi all, another CakePHP framework question...
how can I get ID of current record?
Tnx in advance!!!
Hi all, another CakePHP framework question...
how can I get ID of current record?
Tnx in advance!!!
Basically if you wondering how to get ID of the record after the save action it's very easy.
if($this->MyModel->save($this->data)){
//the id is here
echo $this->MyModel->id;
}
HTH