I'm using Yii2 to create my application. I also like to use the widget feature, but I'm not sure, what is the best practice for the widget code location. The Yii2 directory-structure provides 2 directories:
- @app/components
- @app/widgets
The location "2." (@app/widgets) sounds like the best location for widgets. But, the Yii2 documentation for widgets used the location "1." (@app/components)
So my question: what is the right place for own widgets?
I put it in
@app/components/*.There I also put
and other components of my application