2008年03月10日

smartyで日付を取得

smartyで日付を取得するには

{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}


みたいにする。
『smartyで日付を取得』の続き
posted by ねこまんま at 09:15
Comment(0) | TrackBack(0) | smarty

2007年04月17日

キャッシュを制御する方法

Smartyでキャッシュを制御する方法です。キャッシュを制御する方法の続きを読む
posted by ねこまんま at 23:08
Comment(0) | TrackBack(0) | smarty

2006年06月28日

smartyでファイルのキャッシュをonにする

$smarty -> cashing=1;
posted by ねこまんま at 12:24
Comment(0) | TrackBack(0) | smarty

2006年06月23日

デバッグモード

$smarty->debugging=TRUE;
$smarty->display('hoge.tpl');
でデバッグモードが起動します
posted by ねこまんま at 21:12
Comment(0) | TrackBack(0) | smarty

2005年11月21日

smartyで文字を連結する

テンプレートエンジンsmartyのtplファイル内で文字の連結を行う方法

|cat:を使いますphpでのピリオド(.)と同じ役目

"str1"|cat:$smarty.get.str|cat:"str2"

見ないな感じで使います
posted by ねこまんま at 21:55
Comment(0) | TrackBack(0) | smarty

広告


この広告は60日以上更新がないブログに表示がされております。

以下のいずれかの方法で非表示にすることが可能です。

・記事の投稿、編集をおこなう
・マイブログの【設定】 > 【広告設定】 より、「60日間更新が無い場合」 の 「広告を表示しない」にチェックを入れて保存する。


×

この広告は90日以上新しい記事の投稿がないブログに表示されております。