2010-10-12から1日間の記事一覧

PHP smartyでincludeするとき、変数を使うときの注意

ちょっと分からなかったので、メモ smartyのincludeで、変数$DIRを使いたいとき シングルクォーテーションを使うとダメ。 { include file='$DIR/header.html' } 正しくはダブルクォーテーションを使う。 { include file="$DIR/header.html" }