CRUD With Server-Side Validation | Codeigniter
Crud.php Controller <?php defined('BASEPATH') or exit('No direct script access allowed'); class Crud extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('crud_model'); } public function index() { $data['formdatas'] = $this->crud_model->get_form_data(); $this->load->view('include/header'); $this->load->view('crud/crud',$data); $this->load->view('include/footer'); } public function create() { $data=[]; if(is_array($this->input->post()) && count($this->input->post())>0){ ...