• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to organize applications ?

#11
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?
Reply

#12
Of course. Just name it;

Frontend\Module
Frontend\AnotherModule

Backend\Module
Backend\AnotherModule

Take a look at this, and just create multiple acme. Acme in this case are your frontend and backend. And Blog are Module_A and Module_B.
https://codeigniter.com/user_guide/general/modules.html
Reply

#13
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 )
Reply

#14
(05-21-2020, 08:40 AM)InsiteFX Wrote: To be safe use your own namespace name for your own company.

CompanyName
-- ModuleName
---- Controllers
---- etc;
You mean that way ...

CompanyName (my Namespace)
  +Backend_Modul
      + Modul_A
      + Modul_B
  +Frontdend_Modul
      + Modul_A
      + Modul_B


But i have also to build a namespace (subnamespace) for the Backend_Modul and the Frondend_Modul, or ...?
Reply

#15
Very interesting thread for a newbie like me! Following it and learning... Thank you all!!
Reply

#16
(05-21-2020, 09:35 AM)Zugmaschine Wrote: But i have also to build a namespace (subnamespace) for the Backend_Modul and the Frondend_Modul, or ...?

Yes, all sub-folders are a new sub namespace.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.