Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
smartyを使用して、WebサイトのバックエンドにあるテキストボックスにHTMLを返したいです。私はすでにsmartyを使用してバックエンド自体をレンダリングしています。
これを行うための最良の方法は何ですか?
通常の方法で単一の配列をsmartyに割り当てていますが、テンプレートを返す方法がわかりません。
賢く使用してテンプレートのコンテンツをフェッチするには:
$oSmartyObject->fetch('template.tpl');
割り当てられた変数を使用し、コンテンツを自由に使用できます。