How to get ID of current record?
Another Cak开发者_如何学运维ePHP framework question...
How can I get the ID of the current record?
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
ok, i got it!
it's
echo $modelName['ModelName']['id'];
tnx anw!
精彩评论