ホームページ >バックエンド開発 >PHPチュートリアル >Smarty 3.1.8 の登録関数 registerPlugin の使用に関する問題
Smarty 3.1.8 での register 関数 registerPlugin の使用に関する問題
smarty を学習中にこのような問題に遭遇しました
私が書いた PHP ファイルでは次のように
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->function demo($params){ extract($params); echo $a.$b; } $tpl->registerPlugin('block','demo','demo');
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <body> <{demo a=1 b=text}> <{/demo}> </body>