开发者

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜