Welcome Guest, Not a member yet? Register   Sign In
$psr4 and namespace
#9

I am feeling embarrassed about what I just discovered: Actually it was the composer installation which was working, and the problems I described were caused by my wrong paths in the "use" lines. I said before that the composer installation didn't change anything because I didn't know it has its own autoload file.
Investigating a bit, I saw that Composer just maps all the classes in the file autoload_classmap and I suppose I could do the same in the autoload file from CI. This is not very smart, but it works.
I am old fashioned (started programming in 1974) and do not like tools like Composer which does things I do not control, but I suppose I'll have to live with it.
Thanks to both of you for your support and please accept my apologies for describing a non-existent problem.
Reply


Messages In This Thread
$psr4 and namespace - by PhilInLoco - 03-31-2024, 01:27 PM
RE: $psr4 and namespace - by kenjis - 03-31-2024, 06:50 PM
RE: $psr4 and namespace - by PhilInLoco - 04-01-2024, 02:00 AM
RE: $psr4 and namespace - by kenjis - 04-01-2024, 02:06 AM
RE: $psr4 and namespace - by PhilInLoco - 04-01-2024, 02:21 AM
RE: $psr4 and namespace - by kenjis - 04-01-2024, 02:26 AM
RE: $psr4 and namespace - by PhilInLoco - 04-01-2024, 02:37 AM
RE: $psr4 and namespace - by InsiteFX - 04-01-2024, 03:56 AM
RE: $psr4 and namespace - by PhilInLoco - 04-01-2024, 06:04 AM
RE: $psr4 and namespace - by kenjis - 04-01-2024, 06:01 PM
RE: $psr4 and namespace - by PhilInLoco - 04-02-2024, 05:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB