Welcome Guest, Not a member yet? Register   Sign In
SOLVED: CI 4.0.2 and subdirectories
#1
Thumbs Up 
(This post was last modified: 04-12-2020, 02:13 PM by mariofix. Edit Reason: Solved problem )

Hi! I've just been playing with CI 4.0.2 and I noticed I can't use subdirectories in my Controllers folder, everything else works fine, I installed via composer.

I have $routes->setAutoRoute(true); in Routes.php
if i use this address http://localhost:8080/home works fine, but if create a directory and put the same Home.php file, I get a 404 error
Controllers/Home.php -> http://localhost:8080/home (Works)
Controllers/dot2/Home.php -> http://localhost:8080/dot2/home or http://localhost:8080/dot2/home/index (Doesn't Work)

I get this error
404 - File Not Found

Controller or its method is not found: App\Controllers\Dot2::Home


Have you encounter the same problem?

Thanks!!

-mariofix
Reply


Messages In This Thread
SOLVED: CI 4.0.2 and subdirectories - by mariofix - 03-12-2020, 02:35 PM
RE: CI 4.0.2 and subdirectories - by Bennito254 - 03-13-2020, 05:39 AM
RE: CI 4.0.2 and subdirectories - by InsiteFX - 03-13-2020, 08:14 AM
RE: CI 4.0.2 and subdirectories - by juancarlosv - 04-03-2020, 10:23 AM
RE: CI 4.0.2 and subdirectories - by mariofix - 04-12-2020, 02:12 PM
RE: CI 4.0.2 and subdirectories - by anmar_dev - 04-03-2020, 05:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB