Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • AppForm
  • Application
  • CliRouter
  • Control
  • DownloadResponse
  • ForwardingResponse
  • JsonResponse
  • Link
  • MultiRouter
  • Presenter
  • PresenterComponent
  • PresenterLoader
  • PresenterRequest
  • RedirectingResponse
  • RenderResponse
  • Route
  • SimpleRouter

Interfaces

  • IPartiallyRenderable
  • IPresenter
  • IPresenterLoader
  • IPresenterResponse
  • IRenderable
  • IRouter
  • ISignalReceiver
  • IStatePersistent

Exceptions

  • AbortException
  • ApplicationException
  • BadRequestException
  • BadSignalException
  • ForbiddenRequestException
  • InvalidLinkException
  • InvalidPresenterException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class SimpleRouter

The bidirectional route for trivial routing via query string.

Nette\Object
Extended by Nette\Application\SimpleRouter implements Nette\Application\IRouter
Namespace: Nette\Application
Author: David Grudl
Located at Application/Routers/SimpleRouter.php
Methods summary
public
# __construct( array $defaults = array(), integer $flags = 0 )

Parameters

$defaults
array
default values
$flags
integer
flags
public Nette\Application\PresenterRequest|null
# match( Nette\Web\IHttpRequest $httpRequest )

Maps HTTP request to a PresenterRequest object.

Maps HTTP request to a PresenterRequest object.

Parameters

$httpRequest
Nette\Web\IHttpRequest

Returns

Nette\Application\PresenterRequest|null

Implementation of

Nette\Application\IRouter::match
public string|null
# constructUrl( Nette\Application\PresenterRequest $appRequest, Nette\Web\IHttpRequest $httpRequest )

Constructs absolute URL from PresenterRequest object.

Constructs absolute URL from PresenterRequest object.

Parameters

$appRequest
Nette\Web\IHttpRequest
$httpRequest
Nette\Application\PresenterRequest

Returns

string|null

Implementation of

Nette\Application\IRouter::constructUrl
public array
# getDefaults( )

Returns default values.

Returns default values.

Returns

array
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string PRESENTER_KEY 'presenter'
#
string MODULE_KEY 'module'
#
Constants inherited from Nette\Application\IRouter
ONE_WAY, SECURED
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0