update article set hits = hits+1

edited 十月 2013 in CakePHP
文章被點擊時記錄點擊次數

update article set hits = hits+1

cake中如何實現?謝謝
$this->Article->set('hits', '???');
$this->Article->save();

原始討論: http://twpug.net/x/modules/newbb/viewtopic.php?topic_id=3296

評論

Sign In or Register to comment.