⚠ 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

save and back to the list not working



Invincible Wahid
  • profile picture
  • Member

Posted 23 December 2012 - 07:56 AM

when i click to save and go back to the list its not working and when i click to save button callback data showing in a textarea like

{"success":true,"insert_primary_key":247,"success_message":"<p>Your data has been successfully stored into the database. <a href='http:\/\/localhost\/test\/index.php\/welcome\/client\/edit\/247'>Edit CLIENT<\/a> or <a href='http:\/\/localhost\/test\/index.php\/welcome\/client'>Go back to list<\/a><\/p>","success_list_url":"http:\/\/localhost\/test\/index.php\/welcome\/client\/success\/247"}
[attachment=404:Untitled.png]
where is the problem? my controller code is bellow

public function client() {
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_subject('CLIENT');
$crud->set_table('client');
$crud->display_as("cname", "Client")
->display_as("cid", "ID");
$crud->columns("cname", "cid", "area", "phone", "mobile", "address");
$crud->add_fields("cname", "cid", "area", "phone", "mobile", "address");


$output = $crud->render();

$this->_example_output($output);
}

victor
  • profile picture
  • Member

Posted 23 December 2012 - 09:40 AM

Invincible Wahid Hi and welcome to the forum.
Try update the library.

php_lover
  • profile picture
  • Member

Posted 14 February 2013 - 08:24 AM

Same issue with me how to update as i m new on php as well as grocery crud


davidoster
  • profile picture
  • Member

Posted 14 February 2013 - 21:52 PM

There must be some problem with the javascript on your browser.