I'm reading a tu开发者_开发问答torial for 1.2,which says prototype is the built in library :
http://www.symfony-project.org/book/1_2/11-Ajax-Integration
What about the newest version of symfony?
I'm only familiar with jQuery,is there an easy way to replace the default by jQuery?
I don't believe there is a default in 1.4, no JS library is bundled with the release. To get jQuery method bindings like you had in 1.2 you can use the sfJqueryReloadedPlugin.
As far as i know, it is still prototype. If you can download it, you can easily check this too. Also see what's new in 1.4, there is no mention of new js library being included.
As far as I know, that built-in support is removed in 1.4 and in any case plugins and stuff aren't up to date for that. You're better off just ignoring it and building what you need yourself.
I'm using Symfony 1.4 very happily with Jquery 1.4. You set the Javascript source you need in the view.yml configuration file of the application or module (using the standard Symfony configuration cascade). And I think you can use a Javascript helper to call a .js file on the fly as well.
It all works fine.
精彩评论