Login +

Documentation

SLS_Generic::dispatch

Since SillySmart 1.0

Description

Dispatch the controller and the action without reloading the application
public dispatch ( string $controller, string $action, [ array $http ] );

Parameters

  • string $controller
    generic controller name
  • string $action
    generic scontroller name
  • array $http
    set new params for $_GET and $_POST
     array(
     ||t||||t||"POST" ||t||=> array("key" => "value"),
     ||t||||t||"GET" ||t||=> array("key" => "value")
     )
     

Return

No return.

Exemples

  •  $this->_generic->dispatch("Home","Index");

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.