![]() |
Ci4 Routing Issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Ci4 Routing Issue (/showthread.php?tid=88312) |
Ci4 Routing Issue - De0x95 - 08-21-2023 Hey Guys, im still new to CodeIgniter... I finally got it working on my live server (.htdocs, seperating folders etc.) with a VueJs frontend. Now, currently im able to access the "user/login" route with which I authenticate the user credentials and return a a bearer token, which is working quite fine. But if i try to add a new controller function, like, getUsers or getUser/testUser, or anything else, i always get the error code 500: Undefined property: App\\Controllers\\User::$load Following are the User Controller and the Routes.php config: PHP Code: <?php namespace App\Controllers; Here are the Routes: PHP Code: $routes->setDefaultNamespace('App\Controllers'); RE: Ci4 Routing Issue - ozornick - 08-21-2023 What is property $load? RE: Ci4 Routing Issue - InsiteFX - 08-21-2023 Don' use get use the http verbs |