Skip to content

Instantly share code, notes, and snippets.

@SocalNick
Created July 19, 2012 18:39
Show Gist options
  • Save SocalNick/3145899 to your computer and use it in GitHub Desktop.
Save SocalNick/3145899 to your computer and use it in GitHub Desktop.
View Strategy config
<?php
return array(
'view_manager' => array(
'display_not_found_reason' => false,
'display_exceptions' => false,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => array(
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'index/index' => __DIR__ . '/../view/index/index.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),
'template_path_stack' => array(
__DIR__ . '/../view',
),
'mvc_strategies' => array(
'Ign\Mvc\View\LayoutRenderingStrategy',
),
'strategies' => array(
'ViewAcceptHeaderStrategy' => array(
'ViewJsonStrategy',
'ViewFeedStrategy',
'ViewTextHtmlStrategy',
),
'Ign\View\Strategy\EsiStrategy',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment