ErrorException #64 Declaration of App\Filters\LoginFilter::before(CodeIgniter\HTTP\Re |
ErrorException #64
Declaration of App\Filters\LoginFilter::before(CodeIgniter\HTTP\RequestInterface $request) must be compatible with CodeIgniter\Filters\FilterInterface::before(CodeIgniter\HTTP\RequestInterface $request, $arguments = NULL) I am working on codeIgniter 4.0.4 facing this problem with Login Filters. Please suggest what to do??
(12-02-2020, 07:20 AM)ardritkrasniqi Wrote: Are you implementing from FilterInterface?Here is my code: app/Filters/LoginFilter.php Code: <?php app/Controllers/Home.php Code: <?php namespace App\Controllers; app/Config/Filters.php Code: <?php namespace Config; Error: see [attachment]...
Your missing the arguments parameter on the end of the before and after.
PHP Code: public function before(RequestInterface $request, $arguments = null) What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(12-03-2020, 05:14 PM)InsiteFX Wrote: Your missing the arguments parameter on the end of the before and after. Yes I missed the parameter, Thank You very much , its now working.... |
Welcome Guest, Not a member yet? Register Sign In |