webCOMAND

ajax::__construct()

The ajax constructor creates the ajax object, optionally associated with an existing request option.

Prototype

ajax __construct(request_interface $request = NULL)

Parameters

  • request - Optional request object that will be used to access HTTP parameters.

Example

// retrieve the value of the "search"
$ajax = new \io_comand_web\ajax();
$search = $ajax->request->get('search');