Hi, I need a simple form in client side, that takes a text field parameter and when user submit, it will store in the database, later admin can view in CMS.
The syntax for rendering a page has changed since then and is a lot simple so you can change this: // CHANGE THIS
$page_init = array('location' => 'contact');
$this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init);
$this->fuel_page->add_variables($vars);
$this->fuel_page->render();
//TO JUST
$this->fuel->pages->render('contact', $vars);
If you are wanting the be able to export the contacts entered into a database, you can set the parameter "exportable" on your module. This will create a button in the list view called "Export" which will output a CSV file. You can modify the format of the CSV by overwriting the export_data() method in your module's model which is inherited by base_module_model. http://docs.getfuelcms.com/modules/simple
Comments
https://github.com/daylightstudio/FUEL-CMS/blob/v0.9.3/fuel/application/controllers/contact.php
The syntax for rendering a page has changed since then and is a lot simple so you can change this:
// CHANGE THIS $page_init = array('location' => 'contact'); $this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init); $this->fuel_page->add_variables($vars); $this->fuel_page->render(); //TO JUST $this->fuel->pages->render('contact', $vars);
http://docs.getfuelcms.com/modules/simple