CodeIgniter Forums
CI4 Modules Code not work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CI4 Modules Code not work (/showthread.php?tid=70755)

Pages: 1 2


RE: CI4 Modules Code not work - InsiteFX - 09-03-2020

If it is Myth/Auth it is under the module Myth/Auth Config.


RE: CI4 Modules Code not work - blaasvaer - 09-03-2020

(09-03-2020, 04:46 AM)InsiteFX Wrote: If it is Myth/Auth it is under the module Myth/Auth Config.


Could you point me to where in the file structure that is to be found in the repo?

https://github.com/lonnieezell/simple-forums

And please got to that page and provide the link, as I'm totally incapable of finding it, anywhere.


RE: CI4 Modules Code not work - InsiteFX - 09-03-2020

Lonnie Ezell - Myth/Auth

Myth/Auth Config

Lonnie Ezell - Simple Forums


RE: CI4 Modules Code not work - blaasvaer - 09-03-2020

Ok, then I obviously don’t get namespaces ... thanks.

So, it turns out the link I clicked in this thread sent ne to: https://github.com/lonnieezell/simple-forums

And that’s a completely different repo ... no wonder this is a mess.


RE: CI4 Modules Code not work - InsiteFX - 09-04-2020

Just think of namespaces as folders ( Directories )

app
.... Config
.... Controllers
Blaasvaer <--------- ( namespace is - Blaasvaer ) ( Your namespace should be your name or company name )
.... Config <------- ( namespace is - Blaasvaer\Config )
.... Controllers <-- ( namespace is - Blaasvaer\Controllers )

It's not hard to learn namespaces just think of them as folders.

Read this may help you to understand it better.

Complete Guide to PHP Namespaces