⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Ahmad Zein

Member Since 28 Oct 2014
Offline Last Active Oct 29 2014 01:36 PM
-----

Topics I've Started

Get rows where field equal x.

28 October 2014 - 09:30 AM

$crud->set_table('pages',"where permission =1"); <----------------------how to do this in the right way 

Hellooo

I have multiple users with permissions and i want to show only raws which are for certain user group  ....

 

Thank you 


Get rows where field equal x.

28 October 2014 - 09:26 AM

$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'));

Hellooo

I have multiple users with permissions and i want to show only raws which are for certain user group  ....

 

Thank you 


Get rows where field = "X".

28 October 2014 - 09:22 AM

$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'));

Hellooo

I have multiple users with permissions and i want to show only raws which are for certain user group  ....

 

Thank you 

 


Get rows where field = "X".

28 October 2014 - 09:21 AM

$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'));

Hellooo

I have multiple users with permissions and i want to show only raws which are for certain user group  ....

 

Thank you 

 


Get rows where field = "X".

28 October 2014 - 09:06 AM

hello, 

 

am trying to accomplish the following :

 

get only rows where permission = 1 ,

 

i have multiple users and i want to show only certain rows for each user  where they can edit.

 

something like that :

$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'));

Thank you