CRUD Application in CodeIgniter — a practical guide to CodeIgniter CRUD with clear examples you can reuse in real projects.
CodeIgniter Tutorial Series (43/74). Prefer one article? Read the complete CodeIgniter tutorial.
Short description
CRUD is the core pattern for admin panels and content apps. Combine validation, flash messages, and redirects.
CRUD routes
$routes->get('posts', 'Posts::index');
$routes->get('posts/new', 'Posts::new');
$routes->post('posts', 'Posts::create');
$routes->get('posts/(:num)/edit', 'Posts::edit/$1');
$routes->post('posts/(:num)', 'Posts::update/$1');
$routes->post('posts/(:num)/delete', 'Posts::delete/$1');