SproutCMS

This is the code documentation for the SproutCMS project

function routedUri()

Generates routed URI (i.e. controller/method/arg1/arg2/...) from given URI.

Usage

string|bool Router::routedUri ( string $uri );

Arguments

  1. string $uri
    URI to convert, e.g. 'admin/edit/page/3'

Exceptions thrown

  • Exception
    if no routes configured

Return value

  • string
    Routed URI or false, e.g. 'AdminController/edit/page/3'
  • bool
    Routed URI or false, e.g. 'AdminController/edit/page/3'