src/Router/Router.php
public function reverseRoute( $controllerName, $actionName )
    {
        // Create a temp route because formatting
        $tempRoute = new Route( ["controllerName" => $controllerName, "actionName" => $actionName] );

        foreach ( $this->_routeDefinitions as $routeDefinition )
        {
            $route = call_user_func($routeDefinition);

            if ( $tempRoute->getControllerName() == $route->getControllerName() && $tempRoute->getActionName() == $route->getActionName() )
            {
                return $route->getUri();
            }
        }
    }
public function reverseRoute( $controllerName, $actionName )
    {
        // Create a temp route because formatting
        $tempRoute = new Route( ["controllerName" => $controllerName, "actionName" => $actionName] );

        foreach ( $this->_routeDefinitions as $routeDefinition )
        {
            $route = call_user_func($routeDefinition);

            if ( $tempRoute->getControllerName() == $route->getControllerName() && $tempRoute->getActionName() == $route->getActionName() )
            {
                return $route->getUri();
            }
        }
    }
public function reverseRoute ( $ controllerName , $ actionName ) { // Create a temp route because formatting $ tempRoute = new Route ( [ "controllerName" => $ controllerName , "actionName" => $ actionName ] ) ; foreach ( $ this -> _routeDefinitions as $ routeDefinition ) { $ route = call_user_func ( $ routeDefinition ) ; if ( $ tempRoute -> getControllerName ( ) == $ route -> getControllerName ( ) && $ tempRoute -> getActionName ( ) == $ route -> getActionName ( ) ) { return $ route -> getUri ( ) ; } } }
Returns a route uri given controller name and action name
Returns a route uri given controller name and action name