initialize()
initialize()
Initialize response headers
Media controller is a polymorphic controller that responds differently in different situations depending on the URL.
viewAction()
Media view action, by default accepts URLs in the form of:
media/SLUGmultimedia/SLUGgallery/SLUGReturns the following items to the view:
Looks for templates in the following order:
IF URL IS 'media':
IF URL IS 'multimedia':
IF URL IS 'gallery':
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 |