action to view detail record
- Single Page
Posted 11 May 2012 - 07:07 AM
i want to add new action and Click to view detail this reord
please example the code for me becasuse i am form thailand .i can read english i little bit ^^
Posted 11 May 2012 - 18:16 PM
http://www.grocerycrud.com/documentation/options_functions/add_action
Posted 19 July 2012 - 07:38 AM
hi, yo can use the add action method
http://www.grocerycr...ions/add_action
[/quote]
thanks for your info
but did not function if i not use this code below :
[color=#0000ff]$crud[/color]->[color=#006600]set_theme[/color][color=#66cc66]([/color][color=#ff0000]'datatables'[/color][color=#66cc66])[/color];
can you explain to me?
Posted 19 July 2012 - 09:26 AM
Please, show us your function where you try to use add_action().
Posted 19 July 2012 - 13:43 PM
What GC version are you using? And CI version?
Cheer.s
Posted 24 July 2012 - 04:58 AM
The add_action not working in my flexigrid theme,but working the datatables theme.
My code is below:
$this->grocery_crud->set_table('nlg_emp_info');
$this->grocery_crud->set_subject('Member');
$this->grocery_crud->set_relation('religion','religion','religion_name');
$this->grocery_crud->set_relation('gender','genders','gender_name');
$this->grocery_crud->set_relation('marital_status','marital_sts','marital_status');
$this->grocery_crud->set_relation('blood_group','blood_group','blood_group_name');
$this->grocery_crud->set_relation('designation','designation','designation_name');
$this->grocery_crud->set_relation('department','department','dept_name');
$this->grocery_crud->set_relation('place_of_birth','district','district_name');
$this->grocery_crud->change_field_type('user','invisible');
$this->grocery_crud->callback_before_insert(array($this,'user_calback'));
$this->grocery_crud->add_action('More', '', 'demo/action_more','ui-icon-plus');
$this->grocery_crud->set_field_upload('image','emp_img/');
$output = $this->grocery_crud->render();
$this->crud_output($output);
Posted 24 July 2012 - 05:09 AM
add_action() works for you well, I think. But you do not see the button (or some icon). Please, check documentation of add_action() function. It says that 2 parameter is "[color=#2C575B][font=Arial, Tahoma, Helvetica, sans-serif]add an image url . Notice that [b]in the flexigrid theme is a required field[/b].[/font][/color]"