Giter Club home page Giter Club logo

Comments (6)

samdark avatar samdark commented on July 28, 2024 1

Depends on what do you mean:

  1. If you mean "how to organize my code" then the answer is by namespace. There's no need in specific modules anymore. Entry points could be anywhere.
  2. If you mean reusable modules then these are packages now. They are again, just a set of classes. The only difference is about configs. They could provide configs like https://github.com/yiisoft/cache-file/tree/master/config via Composer config plugin https://github.com/yiisoft/cache-file/blob/master/composer.json#L48

from docs.

samdark avatar samdark commented on July 28, 2024 1

Yii 3 allows all that without having to create modules. See how classes are grouped together by use-case: https://github.com/yiisoft/yii-demo/tree/master/src/User. Later we may come up with extra functionality to make it even more convenient.

from docs.

j1myx avatar j1myx commented on July 28, 2024

Thanks for your quick response @samdark. I was referring to this fabulous feature: https://www.yiiframework.com/doc/guide/2.0/en/structure-modules as it was very efficient when working with monorepositories.

from docs.

samdark avatar samdark commented on July 28, 2024

@j1myx which features exactly?

from docs.

j1myx avatar j1myx commented on July 28, 2024

I mean the complete decoupling that a module had from the entire web application. Since having the views, controllers, etc. separate from the rest of the application, it made the project structure more neat. This order had many advantages considering that yii2 used it a lot in monorepos projects, for example, the joint work of n programmers.

Apparently this architecture was born to cover microservices, leaving aside how well the previous architecture worked to work with monorepos.

from docs.

j1myx avatar j1myx commented on July 28, 2024

Thanks for the info @samdark . I really appreciate the enormous effort
doing to improve this great framework.

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.