Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template

Home Page:https://dominus77.github.io/yii2-advanced-start/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How add other commands with using fm Module Elfinder ?

polinwei opened this issue · comments

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()
    {
...
....
    }
}

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

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