D
D
Dmitry Sidorenko2015-11-27 13:50:15
minification
Dmitry Sidorenko, 2015-11-27 13:50:15

Why is ReflectionException thrown in Mirocow/yii2-minify-view?

Installed the extension via composer
https://github.com/Mirocow/yii2-minify-view
Entered in the config as indicated:
'view' => [
...
'class' => '\mirocow\minify\View',
.. .
]
Here is the config - https://yadi.sk/d/DkSq8uAOkn6Cf
And here is the error - domkaminov.ru/?dbg

An Error occurred while handling another error:
exception 'ReflectionException' with message 'Class \mirocow\minify\View does not exist' in /var/www/domkaminov.ru/public_html/_protected/vendor/yiisoft/yii2/di/Container.php:415

Here is the extensions.php file - https://yadi.sk/d/KV2tPTpBkn6QZ
There is an extension in the file system, there are a lot of them, they all work, but not this one =)
_protected/vendor/mirocow/yii2-minify-view/View.php
In extensions.php the extension is written
'mirocow/yii2-minify-view' =>
array (
'name' => 'mirocow/yii2-minify-view',
'version' => '1.2.1.0',
'alias' =>
array (
'@rmrevin/yii/minify' => $vendorDir . '/mirocow/yii2-minify-view',
),
)
What am I doing wrong? :)
Thanks in advance!
I don't really want to use Gulp =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-01-28
@mpak59rus

Although Mirocow/yii2-minify-view is googled, you should not use it, but rmrevin/yii2-minify-view. At first I ran into the fact that nothing was working, took another package and everything worked in accordance with the documentation.

D
Dmitry Sidorenko, 2016-04-25
@sidorenkoda

The solution from mirocow works great )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question