D
D
des1roer2016-01-14 07:39:36
Yii
des1roer, 2016-01-14 07:39:36

Yii 1.* how to use yiibooster via composer?

what I did - downloaded using composer yii
installed the application via webapp
added via composer to the folder with the yiibooster framework
Attention - the question is: how can I connect yiibooster to the site? before, I just threw a folder in extensions. and how can I specify that yiibooster is in the folder with the framework?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2016-01-14
@des1roer

yiibooster is installed in the vendor if you installed via composer. Just take it and spoil it from there in the same way as from any other folder, which is the problem.
The gist is this:

Yii::setPathOfAlias('bootstrap','../vendor/clevertech/yii-booster/src');
    $this->setImport(array(
                         ...
      'bootstrap.components.*',
    ));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question