![]() |
simply unzipped CodeIgniter ver 4.1.9 in d:\xampp\htdocs folder and rename it to taskapp.
in .env file : CI_ENVIRONMENT = development app.baseURL = 'http://localhost:8088/taskapp/public' in Routes.php i set : $routes->setAutoRoute(true); in browser i can run successfully: http://localhost:8088/taskapp/public created a folder in Views and a file under this folder index.php in Controllers modified Home.php to return that view file successfully. return view('Home/index'); all 3 url's are working fine, showing the same page: http://localhost:8088/taskapp/public http://localhost:8088/taskapp/public/home http://localhost:8088/taskapp/public/home/index copied that Home.php in Controllers and rename it to Tasks.php which contents are as below: PHP Code: <?php created a folder in Views named Tasks and under this folder created a file index.php which contents i copied from index.php as below: PHP Code: <!DOCTYPE html> in browser trying to access below but it shows error: http://localhost:8088/taskapp/public/tasks 404 - File Not Found Controller or its method is not found: \App\Controllers\Tasks::index what i missed or doing wrong here? please guide 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 |