タグ

smartyに関するhagenamaのブックマーク (3)

  • ke-tai.org > Blog Archive > 携帯サイトでSmartyを使う場合の注意点

    携帯サイトでSmartyを使う場合の注意点 Tweet 2008/2/12 火曜日 matsui Posted in PHP | 1 Comment » 「ケータイサイトにSmartyを使おうとしたがうまくいかない」という質問をよく受けることがあるので、注意点をまとめてみます。 問題となるのは、文字コードに「Shift_JIS」を使った場合です。 最近は対応端末が増えたため、UTF-8でページを作る場合も多いですが、過去の資産やら、互換性の問題やらでShift_JISを使うこともあります。 ところがSmartyではSJISは使えません。 なぜなら、Smartyの標準のデリミタである 「 { 」 (0x007b)、  「 } 」 (0x007d) を、SJIS文字列が含んでしまっていることがあるからです。 (つまり必ずしもエラーにはならないことに注意が必要です) エラーが起こった場合には次の

  • Smarty - コンパイリング PHP テンプレートエンジン

    目次序文I. はじめに1章Smartyとは?2章インストール必要条件基的なインストール拡張セットアップII. テンプレートデザイナのためのSmarty3章基構文コメント関数属性ダブルクォート内に埋め込まれた変数MathSmartyの構文解析を回避4章変数phpから割り当てられた変数設定ファイルから読み込まれた変数予約変数{$smarty}5章変数の修正子capitalizecount_characterscatcount_paragraphscount_sentencescount_wordsdate_formatdefaultescapeindentlowernl2brregex_replacereplacespacifystring_formatstripstrip_tagstruncateupperwordwrap6章修正子の連結7章組み込み関数captureconfig_loa

  • Zend Framework + Smarty

    Posted by Dmytro Shteflyuk on March 8, 2006 under PHP Zend Framework’s View class has very bad capability for extending. It contains template variables but does not allow to access them, it has array with different pathes (templates, filters), but does not allow to add another type or access them. Therefor only way to use Smarty with Zend Framework is to abandon Zend_View and manipulate Smarty obj

  • 1