Advertisement
RahmanIEN

routes ci4

Jun 23rd, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | Source Code | 0 0
  1. <?php
  2. //route menampikan view
  3. $routes->get('/bunga', 'Bunga::index');
  4.  
  5. //route untuk tambah data
  6. $routes->get('/bunga/tambah', 'Bunga::tambah');
  7. $routes->post('/bunga/add', 'Bunga::add');
  8.  
  9. //route untuk fungsi edit
  10. $routes->get('/bunga/edit/(:num)', 'Bunga::edit/$1');
  11. $routes->post('/bunga/update', 'Bunga::update');
  12.  
  13. //route untuk hapus data
  14. $routes->get('/bunga/hapus/(:num)', 'Bunga::hapus/$1');
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement