ダイナミックパブリッシング設定
Apache設定
MTで定義されているルートパスのディレクトリ設定を以下のようにして.htaccessファイルを使用できるようにする
#ホームディレクトリを設定
<Directory "/home/httpd/testweb01">
AllowOverride All
</Directory>
ダイナミック設定
処理1
変更前のファイルが静的ファイルで生成されていることを確認
処理2
処理3
テンプレートの設定を開き「公開設定」で”ダイナミック”に変更
処理4
再構築を行い、静的ファイルに".static"を付加されていることを確認
処理5
テンプレートのソースを確認
エディタ
aaaaaaaaaaaaaaaa
<MTDate>
template_c配下のファイル
<?php /* Smarty version 2.6.13, created on 2012-03-01 20:16:11
compiled from mt:107 */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'mtdate', 'mt:107', 3, false),)), $this); ?>
aaaaaaaaaaaaaaaa
<?php $this->_tag_stack[] = array("mtdate", array (
)); echo smarty_function_mtdate(array(), $this); array_pop($this->_tag_stack); ?>
最終更新:2012年03月01日 23:32