# Is it possible create an internal structure to simulate modules like Fuelphp?

**URL:** <https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345>\
**Category:** Need Help\
**Created:** [April 28, 2022, 7:39pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345 "2022-04-28T19:39:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 28, 2022, 7:39pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/1 "2022-04-28T19:39:41Z")

</div>

Hi, i am new to php/web hosting ect. I just installed Cake just last night and so far so good i like what i am seeing even though i am finding it a bit difficult to understand the folder strucher and how things combine to make Cake work. My problem i am i want to seprate my site into three(3) parts i mean create a module for every part.  
1)Core will handle the main site i mean index, contact, about and the rest  
2)Account will handle user’s part of the site i mean login, join, profile, logout and the rest  
3)Admin will handle the admin part of the site.  
i want to know if this is possible in cake and if it’s possible how do i go about this?  
Please help.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 28, 2022, 9:19pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/2 "2022-04-28T21:19:43Z")

</div>

This is what Cake calls “plugins”. There’s [excellent support](https://book.cakephp.org/4/en/plugins.html) for it.

---

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 29, 2022, 6:35pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/3 "2022-04-29T18:35:57Z")

</div>

@Zuluru Thanks for the quick response, but if i may ask how do i link between them? i mean from my index.php page which is located at core plugin how do i link to login.php which will be located at the Account plugin and also if i want to use TwigView to render .html pages is this possible?

---

<div class="post-metadata">

**Author:** ![chetanvarshney](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chetanvarshney/32/2481_2.png) [@chetanvarshney](https://discourse.cakephp.org/u/chetanvarshney)\
**Post date:** [April 29, 2022, 7:15pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/4 "2022-04-29T19:15:38Z")

</div>

There are many plugins available for CakePHP, You can use one of them to start your project  
search on google any User management plugin for CakePHP

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 29, 2022, 7:28pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/5 "2022-04-29T19:28:19Z")

</div>

A url like `['plugin' => 'Account', 'controller' => 'Users', 'action' => 'login']` is probably the sort of thing you’re looking for?

---

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 29, 2022, 7:31pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/6 "2022-04-29T19:31:34Z")

</div>

@Zuluru you’re the man and what about the TwigView thing?

---

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 29, 2022, 7:40pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/7 "2022-04-29T19:40:53Z")

</div>

> [@chetanvarshney](#):
>
> User management plugin for CakePHP

Thanks a lot man, i have already downloaded CakeDC Users plugin

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 29, 2022, 8:12pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/8 "2022-04-29T20:12:41Z")

</div>

Never used TwigView and have no plans to do so any time soon. Are you using [https://github.com/cakephp/twig-view](https://github.com/cakephp/twig-view)? If not, maybe you should?

---

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 29, 2022, 9:00pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/9 "2022-04-29T21:00:10Z")

</div>

Yes, i have already downloaded it but i am asking to how to use it in my plugins

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 30, 2022, 5:06pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/10 "2022-04-30T17:06:27Z")

</div>

What, specifically, are you having problems with? “Using it” is incredibly vague and could mean anything from “I don’t know where to put the code from this project so that I can use it” to “I’m not sure how to format my views to use Twig features”. It’s got pretty substantial help right on that page for the entire range from installation through writing code, and we’re not about to give you even more detail about every single step.

---

<div class="post-metadata">

**Author:** ![chrystman](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/chrystman/32/2482_2.png) [@chrystman](https://discourse.cakephp.org/u/chrystman)\
**Post date:** [April 30, 2022, 5:55pm UTC](https://discourse.cakephp.org/t/is-it-possible-create-an-internal-structure-to-simulate-modules-like-fuelphp/10345/11 "2022-04-30T17:55:54Z")

</div>

Thanks a lot for your help so far, i will try to implement what i have so far and see.
