A
A
Anton2016-09-09 13:43:52
Yii
Anton, 2016-09-09 13:43:52

How to install simple chat for yii2?

I am installing a chat using this tutorial after installation, the command does not work for me php yii simplechat
Tell me what to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2016-09-09
Reytarovsky @Antonchik

Good evening.
If you bet on yii2-basic, then you need to register this module in config/console.php, as the documentation says.

$config = [
    'bootstrap' => ['simplechat'],
    'modules' => [
        'simplechat' => [
            'class' => '\bubasuma\simplechat\Module',
        ],
    ],
]

Then the php yii simplechat console command will work.
If you install in yii2-advanced, then everything should work and so.
Checked)))
And one more thing.
For the chat to work, you must have yii2-twig installed and in composer.json , "bower-asset/twig.js" is written in the require section :
ps And one more little thing. If there is a messages directory with translations, then when you try to go to site.com/messages there will be a redirect error. To do this, either rename the folder with translations and edit it in the config, or try creating your own urlManager rules for the chat module (which will be more correct)

M
Messi, 2016-09-09
@FitTech

In console run php composer.phar require --prefer-dist bubasuma/yii2-simplechat

K
Kirill Sharonov, 2016-09-09
@k_sharonov

Are you installing locally or already on the server? If the former, what system and what are you using? Windows+OpenServer? linux?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question