ICanBoogie
  • Documentation
  • API Reference
  • Routing v2.4.0
Namespaces
  • ICanBoogie
    • Routing
      • Controller
      • Dispatcher
      • Route
Classes
  • ActionController
  • Controller
  • Dispatcher
  • FormattedRoute
  • Helpers
  • Pattern
  • Route
  • Routes
Interfaces
  • Exception
  • ToSlug
Exceptions
  • ActionNotDefined
  • ControllerNotDefined
  • PatternNotDefined
  • PatternRequiresValues
  • RouteNotDefined

Class ActionController

Base class for action controllers.

ICanBoogie\Object
┗ ICanBoogie\Routing\Controller
┗ ICanBoogie\Routing\ActionController
Namespace: ICanBoogie\Routing
Package: ICanBoogie\Routing
Located at ActionController.php

Methods summary

protected get_action( void ) : string

Returns

string
public action( ICanBoogie\HTTP\Request $request ) : ICanBoogie\HTTP\Response|mixed

Dispatch the request to the appropriate method.

Dispatch the request to the appropriate method.

The $request property is initialized.

Parameters

$request

Returns

ICanBoogie\HTTP\Response|mixed
protected resolve_action( ICanBoogie\HTTP\Request $request ) : callable

Resolves the action into a callable.

Resolves the action into a callable.

Parameters

$request

Returns

callable

Methods inherited from ICanBoogie\Routing\Controller

__invoke(), forward_to(), forward_to_route(), get_name(), get_request(), get_route(), last_chance_get(), lazy_get_response(), redirect()

Properties summary

Magic properties

public read-only $action : string

The action being executed.

Magic properties inherited from ICanBoogie\Routing\Controller

$app, $events, $model, $module, $name, $request, $response, $route

Routing v2.4.0 – Check on GitHub – API documentation generated by ApiGen