How add other commands with using fm Module Elfinder ?
polinwei opened this issue · comments
polinwei commented
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
I add the setting as below . then it is ok.
if (Yii::$app instanceof ConsoleApplication) {
$this->controllerNamespace = 'modules\blog\commands';
}