by shigemk2

当面は技術的なことしか書かない

2012-01-03から1日間の記事一覧

find のconditionで like を使う。

404 Not Found "%magic%" ); $hoge = $this->Post->find('all', array('conditions' => $condition)); magicを含む文字列が記録されたtitleカラムのレコードをサーチできる。 なお、 "%%" ); $hoge = $this->Post->find('all', array('conditions' => $c…