Creacion route

Hola Necesito crear los routers desde los controladores, ```php

 class BaseController extends Phalcon\Mvc\Controller {
    protected function registerController(){
        $router = new Phalcon\Mvc\Router();

                    "controller" => "index",
                    "action"     => "get"));

class IndexController extends BaseController{ public function Initialize(){ $this->registerController(); }

    public function getAction(){
        echo "entroooooooooo";



It won't work. You have to define your routes in bootstrap before use them. ```php $di['router']=function() { $router = new Phalcon\Mvc\Router(); $router->add( "/", array( "controller" => "index", "action" => "get") ); return $router; } ``` If you have to define routes in controllers you have to use Annotations Router.