2.11.0系でブロックやテンプレートから別のテンプレートファイルやphpファイルをincludeで呼び出す

以前書いた記事で、

ヘッダーとフッターにログアウトボタンを設置/ヘッダーとフッターをブロック化する
http://d.hatena.ne.jp/AI-615/20110118/1298876586


この中で記述している

<!--{include_php file="`$smarty.const.HTML_PATH`frontparts/bloc/header.php"}-->

が、2.11.0系では呼び出すことができなくなりました(・_・`)


どうやら、”HTML_PATH”が廃止されちゃってるみたいなんですよね。
そのかわりに、”HTML_REALDIR”で呼び出すことができるようになったようです。
なので、今まで”HTML_PATH”と書いていたところは、

<!--{include_php file="`$smarty.const.HTML_REALDIR`frontparts/bloc/header.php"}-->

と、してあげると動いてくれるかもしれないです(・ω・)



ついでに片っ端から「〜PATH」を拾ってみたよ!!!!

EC-CUBE 2.11.0 主要ディレクトリパス一覧

<!--{$TPL_URLPATH}-->
/html/user_data/packages/default/

<!--{$smarty.const.USER_TEMPLATE_REALDIR}-->
html/user_data/packages/


<!--{$smarty.const.TOP_URLPATH}-->
/html/

<!--{$smarty.const.ROOT_URLPATH}-->
/html/

<!--{$smarty.const.HTML_REALDIR}-->
/html/

<!--{$smarty.const.HTTPS_URL}-->
https://ドメイン


<!--{$smarty.const.P_DETAIL_URLPATH}-->
/html/products/detail.php?product_id=

<!--{$smarty.const.IMAGE_SAVE_URLPATH}-->
/html/upload/save_image/


<!--{$smarty.const.DATA_REALDIR}-->
/data/

<!--{$smarty.const.CLASS_REALDIR}-->
/data/class/

<!--{$smarty.const.CLASS_EX_REALDIR}-->
/data/class_extends/


<!--{$smarty.const.TEMPLATE_REALDIR}-->
/data/Smarty/templates/default/

<!--{$smarty.const.TEMPLATE_ADMIN_REALDIR}-->
data/Smarty/templates/admin/


<!--{$smarty.const.TEMPLATE_TEMP_REALDIR}-->
html/upload/temp_template/

<!--{$smarty.const.GRAPH_URLPATH}-->
/html/upload/graph_image/

<!--{$smarty.const.IMAGE_TEMP_URLPATH}-->
/html/upload/temp_image/


<!--{$smarty.const.CART_URLPATH}-->
/html/cart/


<!--{$smarty.const.ADMIN_LOGIN_URLPATH}-->
/html/shopmng/

<!--{$smarty.const.ADMIN_SYSTEM_URLPATH}-->
/html/shopmng/system/

<!--{$smarty.const.ADMIN_PRODUCTS_URLPATH}-->
/html/shopmng/products/

<!--{$smarty.const.ADMIN_ORDER_URLPATH}-->
/html/shopmng/order/


<!--{$smarty.const.MOBILE_IMAGE_URLPATH}-->
/html/upload/mobile_image/

<!--{$smarty.const.MOBILE_TOP_URLPATH}-->
/html/

<!--{$smarty.const.MOBILE_CART_URLPATH}-->
/html/cart/

<!--{$smarty.const.MOBILE_P_DETAIL_URLPATH}-->
/html/products/detail.php?product_id=

/html/がいっぱいあるんだよね!
最初”HTML_REALDIR”に辿り着くまでは”ROOT_URLPATH”だとばかり信じていたのですが、
ちっとも呼び出せなくてあきらめた。何が違うんだ・・・(・_・`)