![]() |
Hi,
I'm confused here. How do I call a method into a controller from another Controller? PHP Code: <?php Code: use App\Controllers\Backend\Authentication\Staff; Code: Staff::method_name(); Code: Non-static method App\Controllers\Backend\Authentication\Staff::login() should not be called statically Thanks
> Does the error "should not be called statically" mean my namespace or use is wrong?
No. You need to know the difference between static calls and non static calls. https://www.php.net/manual/en/language.oop5.basic.php
Look here if you use Laravel : Facades
|
Welcome Guest, Not a member yet? Register Sign In |