cakephp find

字体大小: 中小 标准 ->行高大小: 标准

 

function test(){
     $this->autoRender = false;
     $result =$this->Operator->find('all',
                               array(
                                       'conditions' => (array('id'=>212)),//Where的条件
                                       'fields' => array('id','loginname'),//显示的字段
                                       'joins' => array(), //关联的表
                                       'limit' => null,//显示的数据条数
                                       'offset' => null,//移动的条数
                                       'order' => array("id"), //排序的条件
                                       'page' => 2, //页数
                                       'group' => null, //Group By的条件
                                       )
                               );
     echo "<pre>";
     print_r($result);
     echo "</pre>";

参数要不null 就是数组

 

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/780.html