You can easily do this kind of thing:
public function example()
$output = $this->grocery_crud->render();
$results = $this->db->query("SELECT DISTINCT(myfield) FROM mytable")->result_array();
$output->output .= $this->load->view("autocomplete_script.php",array('results' => $results),true); //If the last segment is true , returns the view as a string
This is a quite quick solution of what you said. The normal way is to do it with views:
or to use a template control.
But those are basic codeigniter features, so after this I think you have to find your answers to codeigniter forum.
You need to read examples and be more familiar with codeigniter to do this. You can read this post http://codeigniter.c...wthread/125687/
of codeigniter that I thing is very good for beginners (except the csrf_protection that grocery CRUD doesn't support yet!) or if you want to don't start from the scratch and create your brand new CMS you can also see: http://codeigniter.c...wthread/209171/
This is a brand new idea to not create a CMS from scratch but by having many required libraries built in codeigniter , such as :
-HMVC, to make fully modular separation
-Phil Sturgeon’s Template, to make customizable themes
-groceryCRUD, to build CRUD application in a minute.
-Authentication & Authorization by using group, privilege, and user management. Not like other CMS, there is no backend-frontend in No-CMS. You have freedom to choose how different groups of users can access pages and modules differently.