Posts: 2
Threads: 0
Joined: May 2020
Reputation:
0
05-21-2020, 07:36 AM
(This post was last modified: 05-21-2020, 07:37 AM by Zugmaschine.)
I have understand the way so far, to make simple Modules in CI4.
But how, when i want build Modules inside Modules.
Take a look:
Backend_Modul
+ Modul_A
+ Modul_B
Frondend_Modul
+ Modul_A
+ Modul_B
I can realize that in the same way, with Namespaces?
Posts: 4,452
Threads: 103
Joined: Oct 2014
Reputation:
146
To be safe use your own namespace name for your own company.
CompanyName
-- ModuleName
---- Controllers
---- etc;
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 31
Threads: 1
Joined: Jan 2018
Reputation:
0
Very interesting thread for a newbie like me! Following it and learning... Thank you all!!
Posts: 4,452
Threads: 103
Joined: Oct 2014
Reputation:
146
Modules are one of the best things that have happened in the new CodeIgniter 4.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 1
Threads: 0
Joined: Dec 2020
Reputation:
0
Hello to all,
I'm creating a small personal cms with CI4, but I'm stuck on the organization of the template system.
My architecture, based on modules is the following:
- app
- public
-- assets
--- default-theme
---- style.css
---- js.css
- companyname
-- Admin
-- Blog
-- Catalog
-- Themes
--- default-theme
---- blog
----- template.php
----- post.php
So I have a "Themes" folder which will contain the different templates.
I would also like to know the best way to manage the CSS & JS files of the template (assets/default-theme) in the same folder as the Php files of the module (tcms/Themes/default-theme).
Thank you in advance for your help and happy holidays.