下記のページを参考にSmartyにクラスメソッドを追加しようとしています。
PHP 5.2.0/Ethna 2.3.0 preview 2

参考:いつもながら初心者には簡素すぎるマニュアル・・orz
ttp://ethna.jp/ethna-document-dev_guide-misc-smarty_register_function.html

これは、
class foo {
 function bar($vl) {
  return number_format($vl);
 }
}
というfoo.phpを用意して、 {ProjectID}_Contlor.phpの$smarty_prefilter_pluginに
array('foo', 'bar'),
を追加してやればhoge.tplにおいて{$app.hage|bar}のように使えるという理解で
あってますか?その場合、foo.phpはどこに置くのでしょうか?
appディレクトリやSmartyのpluginsディレクトリにおいても動作しませんでした。

error messageは以下のとおりです。
Fatal error: Smarty error: [in index.tpl line 22]: [plugin] modifier 'bar' is not implemented (core.load_plugins.php, line 118) in /usr/local/lib/php/Smarty/Smarty.class.php on line 1095

Fatal error: Call to undefined function smarty_modifier_bar() in ・・・