Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Site extends CI_Controller
- {
- function index()
- {
- $this->load->view('options_view');
- }
- function create()
- {
- $data = array(
- 'title' => $this->input->post('title'),
- 'content' => $this->input->post('content')
- );
- $this->site_model->add_record($data);
- $this->index();
- }
- }
Add Comment
Please, Sign In to add comment