![]() |
Hi,
This is my first iteration of Codeigniter and I'm having trouble calling a function inside a controller. I've used this tutorial more or less verbatim to set up: https://www.positronx.io/codeigniter-aut...-tutorial/ I have modified the 'welcome view' (https://example.com) with 2 buttons, 'Access' and 'Register'. I have 2 Controllers, Code: SignupController.php & SigninController.php PHP Code: public function index() PHP Code: public function store() The signup view contains the form html: Code: <form action="<?php echo base_url(); ?>/SignupController/store" method="post"> But when I click the 'Submit' button of the form, example.com/SignupController/store, I get 404 File not found. Can anyone suggest where I'm going wrong? The Routes.php file has PHP Code: $routes->get('/signup', 'SignupController::index'); PHP Code: $routes->get('/signup', 'SignupController::store'); |
Messages In This Thread |
404 when accessing a function in a controller - by davecoventry - 09-11-2022, 05:48 AM
RE: 404 when accessing a function in a controller - by iRedds - 09-11-2022, 06:50 AM
RE: 404 when accessing a function in a controller - by davecoventry - 09-11-2022, 06:59 AM
RE: 404 when accessing a function in a controller - by JustJohnQ - 09-11-2022, 11:20 AM
RE: 404 when accessing a function in a controller - by davecoventry - 09-11-2022, 12:00 PM
RE: 404 when accessing a function in a controller - by JustJohnQ - 09-12-2022, 06:05 AM
RE: 404 when accessing a function in a controller - by davecoventry - 09-12-2022, 12:52 PM
RE: 404 when accessing a function in a controller - by ozornick - 09-12-2022, 11:43 AM
RE: 404 when accessing a function in a controller - by davecoventry - 09-12-2022, 12:54 PM
RE: 404 when accessing a function in a controller - by davecoventry - 09-14-2022, 12:48 PM
|