update page now

Yaf_Route_Static::route

(Yaf >=1.0.0)

Yaf_Route_Static::routeRoute a request

Description

public Yaf_Route_Static::route(Yaf_Request_Abstract $request): bool

Warning

This function is currently not documented; only its argument list is available.

Parameters

request

Return Values

always be true

Examples

Example #1 Yaf_Route_Static::route()example

// assuming there is only one module defined:Index
Request: http://yourdomain.com/a/b
=> module = index, controller=a, action="/?originalUrl=https%3A%2F%2Fphp.net%2Fb%2F%2Fassuming%2520ap.action_prefer%2520%3D%2520OnRequest%3A%2520http%3A%2F%2Fyourdomain.com%2Fb%3D%26gt%3B%2520module%2520%3D%2520default(index)%2C%2520controller%2520%3D%2520default(index)%2C%2520action%2520%3D%2520b%2F%2Fassuming%2520ap.action_prefer%2520%3D%2520OffRequest%3A%2520http%3A%2F%2Fyourdomain.com%2Fb%3D%26gt%3B%2520module%2520%3D%2520default(index)%2C%2520controller%2520%3D%2520b%2C%2520action%2520%3D%2520default(index)Request%3A%2520http%3A%2F%2Fyourdomain.com%2Fa%2Fb%2Ffoo%2Fbar%2Ftest%2Fa%2Fid%2F4%3D%26gt%3B%2520module%2520%3D%2520default(index)%2C%2520controller%2520%3D%2520a%2C%2520action%2520%3D%2520b%2C%2520request%2520parameters%3A%2520foo%2520%3D%2520bar%2C%2520test%2520%3D%2520a%2C%2520id%2520%3D%25204%253C%2Fpre">

See Also

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top