initialize()
initialize()
Initialize response headers
Page controller
indexAction()
Page view action, by default accepts URLs in the form of:
page/SLUGReturns the following items to the view:
Looks for templates in the following order:
If no page is found for given slug, will look for a page template with
the same name in the page folder. So, the URL page/about-us could lead
to the page template page/about-us.twig for a page that does not exist in
CEO.
If a page exists in CEO with the same slug as a static page, the CEO page will always win.
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 |