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 8:44 PM, Gábor Fási maerl...@gmail.com wrote:
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.class.php#L727
On Mon, Apr 12, 2010 at 00:52, michael hodges mhodg...@gmail.com wrote:
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 file appear not to be available. Browser view-
source provides no reference that suggests that the js file is
available either.
I'm concluding that the use_javascripts_for_form($form) function at
the top of my php files is not finding the js file. No error messages
are generated. After searching the forums and web, I've had no luck
finding suggestions. Any advice would be appreciated. Thanks.
Directory structure:
/backend/modules/transaction_receipt/templates/
_form.php
_form.js
For Symfony 1.4.2, Doctrine 1.2
- Michael
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
To unsubscribe, reply using remove me as the subject.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en