tp3無法select一條數據記錄

select 用於找出多組數據

  $config=$this->config_model->limit(1)->order('id asc')->select();
  $this->assign('config',$config);

find用於找一條數據方便取出

  $config=$this->config_model->limit(1)->order('id asc')->find();
  $this->assign('config',$config);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章