action callbacks needed
- Single Page
Posted 03 April 2012 - 05:48 AM
preseting data in "add" happens with using a callback, but there are no callbacks _before or _after a custom action.
Any ideas what I should do or ?
Posted 03 April 2012 - 20:22 PM
For now perhaps if you change your custom buttons with Javascript it would be a good idea. I don't know if I help you with this,but the callback_action is still a functionality that I don't have .
Posted 06 April 2012 - 01:57 AM
My action leads to a small form, there the user chose the category and the city.
You cold use Hidden fields or use some flashdata.
function offices_management_with_actions()
{
$crud->add_action('Photos', '', '','ui-icon-image',array($this,'just_a_test'));
}
function just_a_test($primary_key , $row)
{
$this->session->set_flashdata('name', $info)
return site_url('yourcontroller/offices/add');
}
function offices()
{
$this->session->keep_flashdata('name');
$crud->callback_add_field('services',array($this,'callback_add_services'));
}
function callback_add_services()
{
return "<input type='text' value='".$this->session->flashdata('name')."'";
}