function update() { $data = array('content_md' => $this->input->post('content'), 'content_html' => markdown_decode($this->input->post('content'))); $this->db->where('id', 1); $this->db->update('k_about_me', $data); redirect(site_url("k_admin/about")); }
function update() { $data = array('title' => $this->input->post('title'), 'abstract' => $this->input->post('abstract'), 'type_name' => $this->input->post('tags'), 'content_md' => $this->input->post('content'), 'content_html' => markdown_decode($this->input->post('content'))); $this->db->where('id', $this->uri->segment(4)); $this->db->update('k_blog', $data); redirect(site_url("k_admin/blog")); }