Question: I am new to Yii2 Framework and I am trying to call my controller which is in the frontend folder below

```
htdocs/project/frontend/controllers/MyController.php

```

My method to be invoked is

```
actionTest_method()

```

In Terminal(in the project root directory), I am writing

```
php yii my/test_method

```

I tried

```
php yii frontend/controllers/my/test_method 

```

but didn't work
Error, I am getting InvalidRouteException

Answer: 
liltle remark: if it is "advanced" template - console controllers locate in "console" folder, else if "basic" - in "command" folder
Your console controller must be in htdocs/project/console/controllers/
Also check your console config for controllerNamespace