[导入]fleaphp 中$condtions 写法

$conditions = array(
    array('user.username', 'dualface')
);

$tablePosts =& new Table_Posts();
$posts = $tablePosts->findAll($conditions);
dump($posts);
新的 $condtions 写法比较特别!一定要注意!----写成数组形式。


http://www.fleaphp.cn/bbs/viewthread.php?tid=183


bestmost 2008-06-30 14:54 发表评论

文章来源:http://www.phpweblog.net/fuyongjie/archive/2008/06/30/5253.html
posted @ 2008-06-30 14:54  宇风  阅读(161)  评论(0编辑  收藏  举报