What are the benefits of using the "built in" jQuery in Yii vs. importing jQuery as usual and using it that way?
The reason for my question is that I’d like to outsource the development of the layout files to an external agency. However, I’m a bit skeptical to ask them to follow the syntax of the Yii framework for jQuery rather than just using the common way. I could of course convert it myself after I’ve received the files, but what if changes are required later on.
I’m a bit puzzled by this and would really appreciate some advice on your experience with this.
According to this article:
With Yii it is a little easier to include JS functionality because Yii encapsulates some nice jquery ui plugins. Have a look at zii.widgets.jui. Yii does make it easier to insert jquery functionality.
For the most part I think it comes down to personal preference. I would rather have my own JS files which I could reuse and drop onto other non-yii websites.
What am I doing wrong?