# How can I create HMVC structure in cakephp

**URL:** <https://discourse.cakephp.org/t/how-can-i-create-hmvc-structure-in-cakephp/7333>\
**Category:** Need Help\
**Created:** [February 24, 2020, 7:24am UTC](https://discourse.cakephp.org/t/how-can-i-create-hmvc-structure-in-cakephp/7333 "2020-02-24T07:24:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sneha](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sneha](https://discourse.cakephp.org/u/sneha)\
**Post date:** [February 24, 2020, 7:24am UTC](https://discourse.cakephp.org/t/how-can-i-create-hmvc-structure-in-cakephp/7333/1 "2020-02-24T07:24:13Z")

</div>

How can I create HMVC structure in cakephp? I want to create a multi user access control in cakephp. Can any one help me out with this?

---

<div class="post-metadata">

**Author:** ![newbie](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@newbie](https://discourse.cakephp.org/u/newbie)\
**Post date:** [February 28, 2020, 2:19pm UTC](https://discourse.cakephp.org/t/how-can-i-create-hmvc-structure-in-cakephp/7333/2 "2020-02-28T14:19:16Z")

</div>

The only way I can workout how to do it is creating plugins as they seem to resemble closely to what I see as HMVC if that is any help

bin/cake bake plugin plugin-name  
bin/cake bake controller --plugin plugin-name controller-name  
bin/cake bake model --plugin plugin-name model-name  
bin/cake bake template --plugin plugin-name template-name  
or  
bin/cake bake all --plugin plugin-name name

Cheers

Mal
