Controller or its method is not found: \App\Controllers\Tasks::index |
@kenjis
my feedback to seniors and what i did for juniors like me to have succefully access desired page. 1) downloaded CI4 manually from official website 2) extracted in folder E:\xampp\htdocs\ci4test\ 3) copied env file to .env and added " app.baseURL = 'http://localhost:8088/ci4test/public' " 4) after initial test run, created my Tests as mentioned in starting post here ( App\Controllers\Tasks.php and App\Views\Tasks\index.php create from Home.php and Home\index.php ) 5) test run fail again 6) googled again, now today i found some solutions and its done (very basic, but it was successfully run by instructer Dave Hollingworth in video course without entries in Routes.php, he only changed $routes->setAutoRoute(false); to true . when i added an entry in Routes.php as $routes->get('/tasks', 'Tasks::index'); and in browser enter http://localhost:8088/ci4test/public/tasks then it is showing what it has to. is this due to some changes/enhncements/security or something else i failed to understand? please guide us. regards Newbie here in CodeIgniter World !! Please appologize if any nonsense from me.
environment: Windows 10, XAMPP 3.3.0, VS Code, SQLyog Community Ed.
|
Welcome Guest, Not a member yet? Register Sign In |