I stumble into this issue today.
I have this function inside my controller kaizen
index(){
$this->main();
}
main(){
$this->kaizen();
}
function kaizen(){
$crud = $this->grocery_crud;
$crud->set_table('kaizen')
->set_subject('Kaizen');
$crud->display_as('KaizenId','ID')
->display_as('ProposalTitle','Proposal')
->display_as('ProposedBy','Proposed by')
->display_as('WasteCategory','Waste')
->display_as('PotentialCostSavings','Cost Saving')
->display_as('DateProposed','Date Proposed');
$crud->columns('KaizenId','ProposedBy','ProposalTitle','Objectives','CurrentMethod','DateProposed','WasteCategory','PotentialCostSavings');
$crud->required_fields('ProposalTitle','DateProposed');
$crud->unset_add();
$crud->unset_edit();
$crud->unset_delete();
$crud->unset_texteditor('Objectives','CurrentMethod','ProposedMethod','Implementor','EvalComments','FirstComments','SecondComments','ProcessComments');
$output = $crud->render();
$this->firephp->log($output,"output");
$this->load->view('main_view',$output);
}
When I call this function directly like this: http://localhost/kaizen/ the GC table load successfully however firebug issues the said error.
However, if I called it from http://localhost/kaizen/kaizen the GC table and all its functions work fine.
Is there a way we could run grocerycrud using the former?
Thanks
