Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
viewテンプレートに「Smarty3」を採用-03:プロジェクトで使用できるようにする | PHP・Zend Framework2の備忘録

viewテンプレートに「Smarty3」を採用-03:プロジェクトで使用できるようにする

「ZendSmarty」と「Smarty3」の配置が完了したら、プロジェクトで使用できるようにする。

■「/config/application.config.php」への追記

・6行目に追記

[PHP title=”「/config/application.config.php」の抜粋”]
return array(
// This should be an array of module namespaces used in the application.
‘modules’ => array(
‘Application’,
// ZSmartyの設定を追加
‘ZSmarty’,
),

[/PHP]

■「/module/Application/config/module.config.php」への追記

・10~12行目に追記
・33行目に追記

[PHP title=”「/module/Application/config/module.config.php」の抜粋”]
‘service_manager’ => array(
‘abstract_factories’ => array(
‘Zend\Cache\Service\StorageCacheAbstractServiceFactory’,
‘Zend\Log\LoggerAbstractServiceFactory’,
),
‘aliases’ => array(
‘translator’ => ‘MvcTranslator’,
),
// ZSmartyの設定を追加
‘factories’ => array(
‘Smarty’ => ‘ZSmarty\StrategyFactory’,
),
),

‘view_manager’ => array(
‘display_not_found_reason’ => true,
‘display_exceptions’ => true,
‘doctype’ => ‘HTML5’,
‘not_found_template’ => ‘error/404’,
‘exception_template’ => ‘error/index’,
‘template_map’ => array(
‘layout/layout’ => __DIR__ . ‘/../view/layout/layout.phtml’,
‘application/index/index’ => __DIR__ . ‘/../view/application/index/index.phtml’,
‘error/404’ => __DIR__ . ‘/../view/error/404.phtml’,
‘error/index’ => __DIR__ . ‘/../view/error/index.phtml’,
),
‘template_path_stack’ => array(
__DIR__ . ‘/../view’,
),
// ZSmartyの設定を追加
‘strategies’ => array(‘Smarty’),
),

[/PHP]

コメント

タイトルとURLをコピーしました