简体   繁体   中英

Zend 2 Skeleton. Customize Application module or create own module?

I downloaded the Zend 2 Skeleton Application which comes with the module "Application". This module is the central point of the "Framework". Now I want to add some routes/pages like "terms", "contact" etc. That brings me to the essential question:

Is it best practise to customize the "Application" module or am I supposed to create my own module? Especially if I want to add some static pages? If I'm gonna customize the Application module I can't update the Framework via composer anymore, I guess.

Thanks for everyone's help.

It depends. If you wanna edit this "static pages" via wysiwyg make separate module for pages (CMS ?) If you will have pure static pages just add new controllers to Application.

Current trend is to make API in backend and use some frontend framework for front (so front-end will be responsible for load proper views)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM