CodeIgniter Forums

Full Version: Controllers under subfolder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
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
{


(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!
PHP 7.3.10 was released today.
Pages: 1 2 3 4