How to organize applications ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: How to organize applications ? (/showthread.php?tid=75058) |
RE: How to organize applications ? - Zugmaschine - 05-21-2020 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? RE: How to organize applications ? - jreklund - 05-21-2020 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 RE: How to organize applications ? - InsiteFX - 05-21-2020 To be safe use your own namespace name for your own company. CompanyName -- ModuleName ---- Controllers ---- etc; RE: How to organize applications ? - Zugmaschine - 05-21-2020 (05-21-2020, 08:40 AM)InsiteFX Wrote: To be safe use your own namespace name for your own company.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 ...? RE: How to organize applications ? - FlavioSuar - 05-21-2020 Very interesting thread for a newbie like me! Following it and learning... Thank you all!! RE: How to organize applications ? - jreklund - 05-22-2020 (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. RE: How to organize applications ? - LefflerHirthe - 11-27-2020 This topic is really interesting. It is describing my problem properly. The comments above have given me a lot of ideas for organizing the dzwonki na telefon app RE: How to organize applications ? - InsiteFX - 11-28-2020 Modules are one of the best things that have happened in the new CodeIgniter 4. RE: How to organize applications ? - MathCmsCode - 12-26-2020 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. RE: How to organize applications ? - John_Betong - 12-26-2020 @ MathCmsCode, I created a Base_Controller which all the controllers extend. The Base_Controller detects the URI and sets a public $uri variable. This variable is checked (in a switch statement) and the relevant CSS and JavaScript files included in a common HTML Header file... which is included in all the views. https://codeigniter.com/user_guide/extending/basecontroller.html?highlight=extends%20base%20controller |