Thanks Gábor. Makes sense. I can't implicitly associate a js file with a
form, but rather have to specify the association.
I think that
http://www.symfony-project.org/more-with-symfony/1_4/en/05-Custom-Widgets-and-Validatorswill
also be
helpful documentation.
- Michael
On Sun, Apr 11, 2010 at
That's not how it works.
Define a getJavascripts() function in your form class that return an
array of the neccessary js files. See the links:
http://trac.symfony-project.org/browser/branches/1.4/lib/helper/AssetHelper.php#L621
http://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.c
Hello all,
Not sure how something so fundamental to Symfony is not working for
me, but for my backend module I have in my templates directory a
_form.php file and a _form.js file. The php file is functioning in
that my form and subforms etc render properly, but the javascript
functions in the js