Welcome Guest, Not a member yet? Register   Sign In
Auto-Routing don't work with 4.4.0
#3

I've just test with a fresh project and can reproduce it simply.
So, I download CI 4.4.0 and set only this :

In .env
PHP Code:
CI_ENVIRONMENT development 

In Config\Routing.php
PHP Code:
public bool $autoRoute true

In Config\Feature.php, the parameters still set to Legacy
PHP Code:
public bool $autoRoutesImproved false

Then, I create an Auth.php file in app\Controllers\ folder
PHP Code:
<?php

namespace App\Controllers;

class 
Auth extends BaseController
{
    public function index(): string
    
{
        return view('welcome_message');
    }


When I want to access http://localhost:8080/auth, I have a 404 page with this message
Code:
Controller or its method is not found: \App\ControllersAuth::index
Reply


Messages In This Thread
Auto-Routing don't work with 4.4.0 - by MaxWho17 - 08-26-2023, 02:57 PM
RE: Auto-Routing don't work with 4.4.0 - by MaxWho17 - 08-27-2023, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB