Smarty
ゲッターとセッターだけ持っているオブジェクトを生成してDBから取得した値をセットする。それをSmartyにセットする方法とテンプレートで表示する方法。Smartyにセットするのは以下の方法 $smarty -> registerObject("data", [オブジェクト]); これでSmarty…
Smartyをルート階層に置き、ルート階層以外のところで使用することになった。 project / | +-- blog / index.php | ●●.php | ●●.php | ●●.php +-- smarty / Config_File.class.php | debug.tpl | Smarty.class.php | Smarty_Compiler.class.phpこんな感じ。S…