Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template
https://dominus77.github.io/yii2-advanced-start/
MIT License
23 stars 12 forks source link

How add other commands with using fm Module Elfinder ? #15

Closed polinwei closed 6 years ago

polinwei commented 6 years ago

It always only show one command: - blog/elfinder While I using fm module

Y:\xampp\htdocs\myweb>php yii
This is Yii version 2.0.13.
- blog/elfinder

Source Code:

namespace modules\blog\commands;
use yii\console\Controller;
class BlogController extends Controller
{
    public function actionCommentAlert()
    {
...
....
    }
}
polinwei commented 6 years ago

I add the setting as below . then it is ok.

            if (Yii::$app instanceof ConsoleApplication) {
                $this->controllerNamespace = 'modules\blog\commands';
            }