Welcome Guest, Not a member yet? Register   Sign In
Controller or its method is not found: \\App\\Controllers\\Home::index
#26

(This post was last modified: 03-08-2022, 08:56 PM by spreaderman.)

Hi Kenjis,

I am beginning to think this it is not a filter. Again, the redirect only happens on POST while GET works. I have review my filters and .htaccess and cannot see anything wrong.

I see one other person have a similar problem here here:

In above post, it was suggested to "... check your csrf filter and add an exception for your post requests".

First step is I tried to echo session()->getFlashdata('error'); but empty.

Secondly, I then changed Security.php to public $redirect = false; but it still produces 303 and then reverts to get /

Sorry, I completely forgot to look at config/Filters.php and found this! Exactly as you said. Now I have to find a way to make an exception safely.

public $globals = [
'before' => [
// 'honeypot',
'csrf',
],
'after' => [
'toolbar',
// 'honeypot',
],
];
Reply


Messages In This Thread
RE: Controller or its method is not found: \\App\\Controllers\\Home::index - by spreaderman - 03-08-2022, 08:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB