Welcome Guest, Not a member yet? Register   Sign In
Controllers under subfolder
#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


Messages In This Thread
Controllers under subfolder - by fromberg - 06-30-2016, 10:40 PM
RE: Controllers under subfolder - by sv3tli0 - 06-30-2016, 11:53 PM
RE: Controllers under subfolder - by InsiteFX - 07-01-2016, 04:08 AM
RE: Controllers under subfolder - by titounnes - 07-01-2016, 01:20 PM
RE: Controllers under subfolder - by arma7x - 07-01-2016, 02:12 PM
RE: Controllers under subfolder - by titounnes - 07-01-2016, 09:20 PM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 12:23 AM
RE: Controllers under subfolder - by fromberg - 07-01-2016, 10:07 PM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 02:06 AM
RE: Controllers under subfolder - by fromberg - 07-02-2016, 07:24 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 07:52 AM
RE: Controllers under subfolder - by sv3tli0 - 07-02-2016, 01:02 AM
RE: Controllers under subfolder - by titounnes - 07-02-2016, 03:40 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 04:27 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 04:05 AM
RE: Controllers under subfolder - by titounnes - 09-26-2019, 03:46 AM
RE: Controllers under subfolder - by InsiteFX - 07-02-2016, 03:19 AM
RE: Controllers under subfolder - by kilishan - 07-05-2016, 08:42 PM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 04:59 AM
RE: Controllers under subfolder - by arma7x - 07-10-2016, 06:33 AM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 07:00 AM
RE: Controllers under subfolder - by arma7x - 07-10-2016, 07:17 AM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 01:01 PM
RE: Controllers under subfolder - by mwhitney - 07-27-2016, 09:23 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 03:42 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 04:37 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 12:40 PM
RE: Controllers under subfolder - by andybiancoblu - 09-26-2019, 01:18 PM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 07:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB