I had create an action in controller and wish to reuse it by calling it in console command. my action in controller work fine in web but can't call in command console. Please help.
class MyExampleController extends Controller
{
}
-------------------------------------------------------------------------------------------
class GoCommand extends CConsoleCommand
{
class MyExampleController extends Controller
{
...
public function actionShowMe()
{
...
public function actionShowMe()
{
echo "testing";
}...
}
-------------------------------------------------------------------------------------------
class GoCommand extends CConsoleCommand
{
public function run($args)
{
}
{
echo $this->renderInternal('myExample/showMe');
}