⚠ In case you've missed it, we have migrated 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 is an archived forum. ⚠

  •     

profile picture

Returning views as data



Riccardo Strabello
  • profile picture
  • Member

Posted 04 May 2014 - 18:36 PM

Hello,

for my project i setup a template for codeigniter as here http://glennstovall.com/blog/2012/02/28/setting-up-a-template-and-assets-in-codeigniter/

 

so i create this controller for show table with grocery crud

 

try{
$crud = new grocery_CRUD();
    $crud->set_table('esercenti');
$crud->display_as('tipo','Tipo Aggio');
$crud->set_relation('tipo','tipo_aggio','descrizione');
$data['title_h1'] = 'Anagrafica Esercenti';
$data['box_title'] = 'Esercenti';
$data['output'] = $crud->render();
$content = $this->load->view('admin/anagrafica', $data, true);
$this->render_admin($content);
}catch(Exception $e){
show_error($e->getMessage().' --- '.$e->getTraceAsString());

 

using third parameter for load->view() http://ellislab.com/codeigniter/user-guide/general/views.html

 

All features in ajax don't work (search, pagination, refresh....)

 

Firefox tell me "empty string passed to getelementbyid()"

 

Can someone help me, thanks