Welcome Guest, Not a member yet? Register   Sign In
put method not working
#1

I have this route for update my user data:

PHP Code:
$routes->put('/admin/users/(:num)/update''Admin\UserController::update/$1', ['as' => 'update']); 

in  UserController:

PHP Code:
    public function update(int $id){
        echo 'Ok';
    

in View:

PHP Code:
<form method="PUT" action="<?= route_to('update', esc($user['id'])); ?>" 


But in Action i see error:

Code:
404 - File Not Found

Controller or its method is not found: {0}::{1}


How do can i fox this problem?
Reply


Messages In This Thread
put method not working - by cilux - 03-21-2020, 05:09 AM
RE: put method not working - by jreklund - 03-21-2020, 07:51 AM
RE: put method not working - by cilux - 03-23-2020, 02:07 AM
RE: put method not working - by kilishan - 03-23-2020, 07:11 AM
RE: put method not working - by blaasvaer - 12-15-2020, 03:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB