This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » why use php to create javascript?
why use php to create javascript? [message #101937] Sat, 03 July 2010 03:06
cwheat503  is currently offline cwheat503
Messages: 16
Registered: June 2010
Junior Member
I am new to the frame work, not even finished with the jobeet tut. But I am wondering why there is a need for the javascript wrappers?

In my mind the reason for a framework is to separate out your code. View logic stays in the view (mostly html), you have your models (business logic/data) and your controllers.

So why mix javascript in php, why not just create the javascript in the view?

What are the advantages to using a helper like the jquery reloaded plugin? vrs just creating the JS in the view file?

I am not trying to flame so don't take it that way I am really trying to understand how/why all the pieces fit together.
Previous Topic:Jquery Helper=> jq_draggable_element() and jq_drop_receiving_element()
Next Topic:Extending current sfJqueryPLugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software