M
M
Mikha Pankratov2016-04-11 13:23:57
Yii
Mikha Pankratov, 2016-04-11 13:23:57

How to call a command on advanced yii2?

Good afternoon,
I have such a thing in the /frontend/commands folder where the command is
How can I run it from the console? I try

cd frontend && php ../yii controller/action
||
php yii controller/action

Tell me how you really need it?)
I switched from basic to advanced =>> so I think it might be worth putting the command into the console / console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-04-11
@frmax

using cd go to the folder where yii is located, and then runphp yii controller/action

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question