Sunday, 28 December 2008

symfony - Ajax is not defined

I have been working on a small Ajax project using symfony - really trying to figure out how to get the nifty ajax functionalities working (using link_to_remote for instance).

I kept getting Ajax is not defined or Draggable is not defined errors and spent a couple of hours searching for the solution. Anyway, I finally came across this command:

symfony plugin:publish-assets


This got it all working for me - it simply copied the 'assets' (js scripts) to my /web folder. Simple :).

More code soon...

Thoughts in the meantime?

7 comments:

  1. helped me. Thanks.

    ReplyDelete
  2. Glad to have been of use :)

    ReplyDelete
  3. u rock man!!!! ... I spent 2 weeks on this issue :p thanks for your help

    ReplyDelete
  4. Wow, well, happy this was useful :)

    ReplyDelete
  5. Didn't worked for me:( Can't find a solution, Ajax is not defined is still displaying:( Please help someone!

    ReplyDelete
  6. After trying to figure this error out on my own for an hour, I found this post. Thank you. You helped me a lot.

    ReplyDelete