2014-10-28 2 views
0
$crud->set_table('pages',"where permission =1"); <----------------------how to do this in the right way 
$crud->set_relation('pagetype','themes','name'); 
$crud->set_rules('systemTTL', 'System Title', 'trim|required|min_length[4]|xss_clean|alpha_dash'); 
$crud->callback_add_field('title',array($this,'edit_field_callback')); 

행을 얻을 경우 식료품 CRUD 필드와 동일한 값

감사합니다 Hellooo 내가 권한을 가진 다수의 사용자를 가지고 있고 특정 사용자 그룹 만 RAWS을 보여주고 싶은 ....

답변

2

$crud->where('permission', 1); 

편집 : Here이 다큐 인 경우의 방법을 사용 .

+1

이유와 이유가 무엇인지 설명하십시오. 남자에게 물고기를주고 하루 동안 먹이고, 물고기를 가르치며, 평생 음식을줍니다. – jwenting

+0

설명서를 보는 것만 큼 쉽습니다. http://www.grocerycrud.com/documentation/options_functions/where – Falk

+0

나는 내가 왜 보지 못했는지 알 수 없었습니다. –

관련 문제