Resource
abstract class Resource extends Router (View source)
Constants
| SLASH |
Create a route with slash at the end, like: |
| NOSLASH |
Create a route without slash at the end, like: |
Properties
| static protected array | $httpRoutes | Store normal routes |
from Router |
| static protected array | $httpParamRoutes | Store param routes |
from Router |
| static protected string | $prefixNS | Define namespace prefix to Controllers |
from Router |
| static protected string | $prefixPath | Define path prefix to routes |
from Router |
| protected int | $format | Define path format, possible values: self::SLASH, self::NOSLASH, self::SLASH|self::NOSLASH |
|
| protected string | $contentType | Define content-type header |
|
| static protected array | $valids | Define methods and routes |
Methods
static bool
find(string $route, string $path, array $matches)
Get params from routes using regex
from
Router
mixed
route()
Define routes based on class methods
static mixed
action()
Define routes based on class methods
static mixed
output($output)
Overwrite output
Details
in
Router at line 52
static protected bool
find(string $route, string $path, array $matches)
Get params from routes using regex
mixed
route()
Define routes based on class methods
static mixed
action()
Define routes based on class methods
static protected mixed
output($output)
Overwrite output