Listing console commands


(C) #1

Using advanced app template. Is there a way to get the output of yii help to display in the frontend?


(Serban Cristian) #2

Yes. Write the output in a socket and read it with websockets. Write it in a database and read it from there, etc. This has nothing to do with yii.


(Uldis Nelsons) #3
  1. Extend yii\console\controllers\HelpController, where overwrite stdout(), where use echo for output
  2. In web controller action call extended HelpController action help and catch text.