Comments (6)
Depends on what do you mean:
- 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.
- 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.
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.
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.
@j1myx which features exactly?
from docs.
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.
Thanks for the info @samdark . I really appreciate the enormous effort
doing to improve this great framework.
from docs.
Related Issues (20)
- Have rules about resolving discussions / conversations in code review HOT 4
- Chain calls must be put on separate lines HOT 14
- Add Related packages section HOT 2
- update CODE_OF_CONDUCT.md links
- update yii site links
- update links
- broken links
- Add Rule and Rule Handler to glossary
- Add common PHPStorm config
- Document explicit `null` type hint HOT 5
- Configure max line length
- Code style summary to discuss and configure HOT 4
- Automatically add line breaks for long lines in Markdown HOT 1
- Automatically detect broken links
- Link to the next chapter where it makes sense
- Yiisoft\Form\YiisoftFormModel\FormModel is not exist HOT 1
- Add git branches flow description HOT 1
- Add usage of KV cache to RoadRunner docs
- update es folder links
- Use Swoole instead of OpenSwoole
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.