CodeIgniter 4 Running Problem |
difficult to see what your doing and not doing .
So just to clarify routes are in app/Config/Routes.php when you get /install codeigniter in routes you see : Code: $routes->setDefaultNamespace('App\Controllers'); so some default stuff set up for my home page I have in routes : Code: $routes->get('/home','Home::landingpage'); Then to get rid of the welcome to CI4 i made a Home.php controller containing Code: <?php you can edit Routes to use another function of your own controller eg Code: $routes->get('/', 'Home::index'); then for instance : Code: public function index() So now domain.com/ or domain.com/home willn ow go to the same landing page But i guess an edit of default routes might be needed explantion a bit mangled as i'm in a rush to g oto Aikido , so any questions just come back |
Messages In This Thread |
CodeIgniter 4 Running Problem - by amitl - 09-12-2023, 06:58 AM
RE: CodeIgniter 4 Running Problem - by ozornick - 09-12-2023, 08:10 AM
RE: CodeIgniter 4 Running Problem - by captain-sensible - 09-12-2023, 09:52 AM
RE: CodeIgniter 4 Running Problem - by kenjis - 09-12-2023, 09:28 PM
|