Welcome Guest, Not a member yet? Register   Sign In
Form submission not picking up URL route
#3

PHP Code:
$routes->get('products''Product::feature');
$routes->post('products''Product::feature');
$routes->put('products/(:num)''Product::feature');
$routes->delete('products/(:num)''Product::feature'); 

Multiple method:

PHP Code:
$routes->match(['get''put'], 'products''Product::feature'); 

No method: 
PHP Code:
$routes->add('journals''App\Blogs'); 

Your form sends POST request while your route is taking get requests.
pro novice
Reply


Messages In This Thread
RE: Form submission not picking up URL route - by tweenietomatoes - 03-08-2020, 11:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB