Previous Page
dump()

Solar_App_HelloApp
fetch()

Next Page
locale()

fetch()

public Solar_Http_Response fetch ( string $spec default 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 _rescueException() method, which may generate and return alternative output.