Solar_App_Hello::fetch()

public Solar_Http_Response Solar_App_Hello::fetch ( string $spec = NULL )

Executes the requested action and returns its output with layout.

Inherited from Solar_Controller_Page.

Parameters

  • (string) $spec: The action specification string, for example, "tags/php+framework" or "user/pmjones/php+framework?page=3"

Returns

  • (Solar_Http_Response) A response object with headers and body from the action, view, and layout.

Description

Executes the requested action and returns its output with layout.

If an exception is thrown during the fetch() process, it is caught and sent along to the _exceptionDuringFetch() method, which may generate and return alternative output.



Local