Announcing: Bonfire - a drop-in admin area |
You can try adding this example module https://github.com/dgvirtual/bonfire2-pages-module
And if it works, check for differences with yours. Did you really remake 40+ modules of yours to conform to Bonfire2 requirements? Those go way beyond namespacing.
==
Donatas G. (12-28-2023, 12:02 AM)dgvirtual Wrote: You can try adding this example module https://github.com/dgvirtual/bonfire2-pages-module believe 100% I have those 40+ modules like your repo and all depend on bonfire systems @dgvirtual you have pointed that out exactly yes I have also used this module but does not work. this was my example if I was somewhere done wrong but nothing working at all until I use PSR4 I can use the bonfire2-pages-module I don't know if you also checked on your side with that repo??? !! it does not work on PHP Code: public $appModules = [ it works on PHP Code: public $psr4 = [ Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
PHP Code: 'App\Modules' => APPPATH . 'Modules/Pages', - you should not add Pages at the end. Leave it as in documentation: Code: 'App\Modules' => APPPATH . 'Modules',
==
Donatas G. (12-28-2023, 12:49 AM)dgvirtual Wrote: Thank you, @dgvirtual After removing the pages, it is now working fine, and the same is true for all 40+ modules. Did I use the wrong namespaces? Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
You can see in my example (and in the official docs of Bonfire) that for the automatic detection to work the module classes should be namespaced like this:
App\Modules\Modulename\[Controllers or Models or ...]; Good to know it works. Hopefully you can make them all work now.
==
Donatas G. |
Welcome Guest, Not a member yet? Register Sign In |