src/Router/Router.php
private function _createRoute( $options )
    {
        $url = $this->_di->getService( "url" );

        /**
         * All route uris should have the uri prefix
         */
        $options["uri"] = $url->getUriPrefix() . $options["uri"];

        if (isset($options["controller_action"]))
        {
            $controller_action_exploded = explode( "#", $options["controller_action"] );

            $options["controllerName"] = $controller_action_exploded[0];
            $options["actionName"]     = $controller_action_exploded[1];
        }

        // $uri            = $settings["uri"];
        //
        // $controllerName = $settings["controllerName"];
        //
        // $actionName     = $settings["actionName"];
        //
        // $params         = $settigns["params"];

        return new Route($options);
    }
private function _createRoute( $options )
    {
        $url = $this->_di->getService( "url" );

        /**
         * All route uris should have the uri prefix
         */
        $options["uri"] = $url->getUriPrefix() . $options["uri"];

        if (isset($options["controller_action"]))
        {
            $controller_action_exploded = explode( "#", $options["controller_action"] );

            $options["controllerName"] = $controller_action_exploded[0];
            $options["actionName"]     = $controller_action_exploded[1];
        }

        // $uri            = $settings["uri"];
        //
        // $controllerName = $settings["controllerName"];
        //
        // $actionName     = $settings["actionName"];
        //
        // $params         = $settigns["params"];

        return new Route($options);
    }
private function _createRoute ( $ options ) { $ url = $ this -> _di -> getService ( "url" ) ; /**
         * All route uris should have the uri prefix
         */ $ options [ "uri" ] = $ url -> getUriPrefix ( ) . $ options [ "uri" ] ; if ( isset ( $ options [ "controller_action" ] ) ) { $ controller_action_exploded = explode ( "#" , $ options [ "controller_action" ] ) ; $ options [ "controllerName" ] = $ controller_action_exploded [ 0 ] ; $ options [ "actionName" ] = $ controller_action_exploded [ 1 ] ; } // $uri            = $settings["uri"]; // // $controllerName = $settings["controllerName"]; // // $actionName     = $settings["actionName"]; // // $params         = $settigns["params"]; return new Route ( $ options ) ; }
Helper function to create a route
Helper function to create a route