Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Nette_MicroPresenter

Micro presenter.

Object
Extended by Nette_MicroPresenter implements IPresenter
Package: NetteModule
Author: David Grudl
Located at Application/MicroPresenter.php
Methods summary
public
# __construct( DIContainer $context )
public SystemContainer|DIContainer
# getContext( )

Gets the context.

Gets the context.

Returns

SystemContainer|DIContainer
public IPresenterResponse
# run( PresenterRequest $request )

Returns

IPresenterResponse

Implementation of

IPresenter::run()
public ITemplate
# createTemplate( string $class = NULL, callable $latteFactory = NULL )

Template factory.

Template factory.

Parameters

$class
string
$latteFactory
callable

Returns

ITemplate
public RedirectResponse
# redirectUrl( string $url, integer $code = IHttpResponse::S302_FOUND )

Redirects to another URL.

Redirects to another URL.

Parameters

$url
string
$code
integer
HTTP code

Returns

RedirectResponse
public
# error( string $message = NULL, integer $code = IHttpResponse::S404_NOT_FOUND )

Throws HTTP error.

Throws HTTP error.

Parameters

$message
string
$code
integer
HTTP error code

Throws

BadRequestException
public IRequest
# getRequest( )

Returns

IRequest
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public read-only IRequest $request
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0