Hola Necesito crear los routers desde los controladores,
class BaseController extends Phalcon\Mvc\Controller {
protected function registerController(){
$router = new Phalcon\Mvc\Router();
$router->add(
"/",
array(
"controller" => "index",
"action" => "get"));
}
}
class IndexController extends BaseController{
public function Initialize(){
$this->registerController();
}
public function getAction(){
echo "entroooooooooo";
}
}
Gracias