initialize()
initialize()
Initialize response headers
Section controller.
Sections can be of two types:
Both types will return a section object, in the case of an ad-hoc section, section object will by dehydrated and will not have an ID.
indexAction()
Section view action, by default accepts URLs in the form of:
section/SLUGReturns the following items to the view:
Looks for templates in the following order:
terminateWithView(string $view, array $params = array(), array $headers = array())
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
| string | $view | path |
| array | $params | view params |
| array | $headers | optional headers |