For example, I created a new page, and I\'d like to use, for example, backbone.js, custom css file and some collection of images. Where should I declare all this stuff in Yii2?
At first, you should create SomeAsset class in your app/assets/ folder with your new js and css files.
You can extend your AppAsset overloading its properties.