dwPrototypeWindowPluginでエラー発生

1 Mins read

dwPrototypeWindowPluginでエラーが発生した。どうやら、prototype1.5.1からprototype.Browserというものがあるらしい。で困ったところ、Prototype.BrowserFeaturesにすればよいみたい。

Prototype.Browser ⇒ Prototype.BrowserFeatures

これでエラーが出なくなりました。

ところが、それでもうまくいきません…。
(もしかしたら、下記のsfPrototypePluginを入れたらよかったのかもしれません)

というところで、sfModalBoxPluginを発見。実は、これは便利!

インストールは、

$ symfony plugin-install http:⁄⁄plugins.symfony-project.com/sfPrototypePlugin
$ symfony plugin-install http:⁄⁄plugins.symfony-project.com/sfModalBoxPlugin

templateにて、

<?php use_helper('ModalBox') ?>

<?php echo m_link_to('モーダル', 'module/action') ?>

でいけてしまいました。