Welcome Guest, Not a member yet? Register   Sign In
Controllers under subfolder
#31

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
{


What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#32

(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!
[Image: https://vulndetect.org/assets/uploads/fi...docker.ico]

Andy Biancoblu 

Quote:Once you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Reply
#33

PHP 7.3.10 was released today.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB