![]() |
In View/signup.php
PHP Code: <form action="<?php echo base_url(); ?>/SignupController/store" method="post"> In app/Config/Routes.php: PHP Code: $routes->post('/SigupController/(:any)', 'SignupController::$1'); Result (called using form->Submit): 404, File not found. Result (using https://example.com/SignupController/store in Browser): 404, File not found. In View/signup.php PHP Code: <form action="<?php echo base_url(); ?>store" method="post"> In app/Config/Routes.php: PHP Code: $routes->get('/store', 'SignupController::store'); Result (called using form->Submit): 404, File not found. Result (using https://example.com/store in Browser): Function called correctly, page displayed. In View/signup.php PHP Code: <form action="<?php echo base_url(); ?>/store" method="post"> In app/Config/Routes.php: PHP Code: $routes->post('/store', 'SignupController::store'); Result (called using form->Submit): 404, File not found. Result (using https://example.com/store in Browser): Function called correctly, page displayed. ~Dave |
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
|