Smarty - コンパイリング PHP テンプレートエンジン
Monte Ohrt <monte@ispi.net>
Andrei Zmievski <andrei@php.net>
Shinsuke Matsuda <mat-s@meg.winknet.ne.jp>
19-09-2004
製作著作 © 2001-2004 ispi of Lincoln, Inc.
目次
序文
I.
はじめに
1章
Smartyとは?
2章
インストール
必要条件
基本的なインストール
拡張セットアップ
II.
テンプレートデザイナのためのSmarty
3章
基本構文
コメント
関数
属性
ダブルクォート内に埋め込まれた変数
Math
Smartyの構文解析を回避
4章
変数
phpから割り当てられた変数
設定ファイルから読み込まれた変数
予約変数{$smarty}
5章
変数の修正子
capitalize
count_characters
cat
count_paragraphs
count_sentences
count_words
date_format
default
escape
indent
lower
nl2br
regex_replace
replace
spacify
string_format
strip
strip_tags
truncate
upper
wordwrap
6章
修正子の連結
7章
組み込み関数
capture
config_load
foreach,foreachelse
include
include_php
insert
if,elseif,else
ldelim,rdelim
literal
php
section,sectionelse
strip
8章
カスタム関数
assign
counter
cycle
debug
eval
fetch
html_checkboxes
html_image
html_options
html_radios
html_select_date
html_select_time
html_table
math
mailto
popup_init
popup
textformat
9章
設定ファイル
10章
デバッギングコンソール
III.
プログラマのためのSmarty
11章
定数
SMARTY_DIR
12章
変数
$template_dir
$compile_dir
$config_dir
$plugins_dir
$debugging
$debug_tpl
$debugging_ctrl
$autoload_filters
$compile_check
$force_compile
$caching
$cache_dir
$cache_lifetime
$cache_handler_func
$cache_modified_check
$config_overwrite
$config_booleanize
$config_read_hidden
$config_fix_newlines
$default_template_handler_func
$php_handling
$security
$secure_dir
$security_settings
$trusted_dir
$left_delimiter
$right_delimiter
$compiler_class
$request_vars_order
$request_use_auto_globals
$error_reporting
$compile_id
$use_sub_dirs
$default_modifiers
$default_resource_type
I.
メソッド
append
--
append_by_ref
--
assign
--
assign_by_ref
--
clear_all_assign
--
clear_all_cache
--
clear_assign
--
clear_cache
--
clear_compiled_tpl
--
clear_config
--
config_load
--
display
--
fetch
--
get_config_vars
--
get_registered_object
--
get_template_vars
--
is_cached
--
load_filter
--
register_block
--
register_compiler_function
--
register_function
--
register_modifier
--
register_object
--
register_outputfilter
--
register_postfilter
--
register_prefilter
--
register_resource
--
trigger_error
--
template_exists
--
unregister_block
--
unregister_compiler_function
--
unregister_function
--
unregister_modifier
--
unregister_object
--
unregister_outputfilter
--
unregister_postfilter
--
unregister_prefilter
--
unregister_resource
--
13章
キャッシュ
キャッシュのセットアップ
ページごとに複数のキャッシュ
キャッシュのグループ
キャッシュ可能なプラグインの出力の制御
14章
拡張機能
オブジェクト
プリフィルタ
ポストフィルタ
アウトプットフィルタ
キャッシュハンドラ関数
テンプレートリソース
15章
プラグインによるSmartyの拡張
プラグインの動作の仕方
命名規約
プラグインの記述
テンプレート関数プラグイン
修正子プラグイン
ブロック関数プラグイン
コンパイラ関数プラグイン
プリフィルタ/ポストフィルタプラグイン
アウトプットフィルタプラグイン
リソースプラグイン
インサートプラグイン
IV.
付録
16章
トラブルシューティング
Smarty/phpエラー
17章
Tips & Tricks
空白の変数の扱い
変数のデフォルトの扱い
ヘッダテンプレートにタイトルの変数を渡す
日付
WAP/WML
コンポーネントされたテンプレート
E-mailアドレスを混乱させる
18章
リソース
19章
バグ
次のページ
序文