CodeIgniter Forums
Controllers under subfolder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Controllers under subfolder (/thread-65608.html)

Pages: 1 2 3 4


RE: Controllers under subfolder - InsiteFX - 09-26-2019

It should work just make sure that you namespace is the same as the folder name and the first character
is upper case.

PHP Code:
<?php namesapce App\Controllers\SomeFolder;

// ./app/Controllers/SomeFolder

use CodeIgniter\Controller;

class 
SomeController extends Controller
{





RE: Controllers under subfolder - andybiancoblu - 09-26-2019

(09-26-2019, 12:40 PM)InsiteFX Wrote: It should work just make sure that you namespace is the same as the folder name and the first character
is upper case.

PHP Code:
<?php namesapce App\Controllers\SomeFolder;

// ./app/Controllers/SomeFolder

use CodeIgniter\Controller;

class 
SomeController extends Controller
{


Hi again,
I can say now I solved my problem!!!

First I tried to change to uppercase namespaced folder but didn't work. Don't know why. So, since I'm in love with Docker, I tried a different approach.

I rebuilt php docker container with Php 7.2.22 and apache 2. Works Like a charm! Fantastic, I'm so enthusiast I can start developing with this fanatstic framework.

Unfortunately I cannot say if the problem was binded to the docker container build or some faulty settings. Anyway I took notes about the building of a docker container using php and shared folder to develop with maximum flexibility.

If anyone is interested I can paste some code to start a dev container.

Thanks a lot to everyone, see you all in the next thread!


RE: Controllers under subfolder - InsiteFX - 09-26-2019

PHP 7.3.10 was released today.