2009-10-16から1日間の記事一覧
たとえば、pearへのインクルードパスが指定できる。とか、.htaccessでインクルードパスを変えれる時にcakephp で pear を使う場合はそのまま使えないのかと思いました。(いろいろ参考にしてるとvendorsの中に入れるみたいで・・・)で、実験してみました。ヘ…
$this->Post->set("id",1);$this->Post->saveField("name","rename");
データベースから条件を指定したレコードのカラムを取得する$conditions = array( 'id' => 1);$result = $this->post->field("name",$conditoins,"Post.id ASC");最後、または最初の1件だけ取得