When using sfModalBoxPlugin version 1.0.1 and you are getting the following error (because some methods are changed/depreciated in symfony 1.2)
Fatal error: Call to undefined function _options_for_javascript() in /var/www/myproject/plugins/sfModalBoxPlugin/lib/helper/ModalBoxHelper.php on line 120
You need to remove the underscore from the function name. Eg: change _options_for_javascript to options_for_javascript
UPDATE::
Ahh there is also two paths that you can change to make it work a little nicer with symfony:
first, change line 35ish in modalbox.js to:
closeValue: "<img style='border:0px' src='../../web/sf/sf_admin/images/cancel.png'/>", // Default string for close link in the header
and second, change line 60ish in modalbox.css to:
background: transparent url(../../sfModalBoxPlugin/images/spinner.gif) 50% 0 no-repeat;
Thats basically it. Plugin changes done, all symfony 1.2 compatible!
UPDATE2::
Infact, after doing these changes I still had one issue. The focus change when pressing tab was not working. I ended up getting the new modal code from the source and updating the whole plugin with it. So basically, to save some hassle (the above stuff), and to get a wayyy nicer modal experience (as heaps of things have been improved) use this: here. (untill the plugin gets updated in the repo of course)