package GlotPress

 Methods

__construct()

__construct($urls = array()

Parameters

$urls

add()

add($re, $function, $method = 'get'

Parameters

$re

$function

$method

prepend()

prepend($re, $function, $method = 'get'

Parameters

$re

$function

$method

remove()

remove($re, $method = 'get'

Parameters

$re

$method

request_method()

request_method() 

Returns the current request URI path, relative to the application URI and without the query string

request_uri() 

route()

route() 

Sets the default routes that GlotPress needs.

set_default_routes() 

default_routes()

default_routes() 

 Properties

 

$api_prefix

$api_prefix 

Default

'api'
 

$urls

$urls 

Default

array()