I’m eying the Yii PHP framework for a new project, but after going through a few demos and checking out the code I’m noticing all javascript is generated through Yii functions. Is there anyway to override this? I really want to be able to write my own javascript for sections of the project, specifically for a map based search piece that requires a lot of javascript. Is this possible and is it worth using Yii for a project where I’ll have to write a ton of my own javascript for a few sections of the project?
Share
Of course you can write a ton of Javascript yourself if you cannot or do not want to use the built-in widgets; but many times “writing your own” might turn out to be subclassing a widget so that you can extend it or just writing your own widget from scratch. In my experience being able to have Javascript be auto-generated from a higher-level specification you provide (i.e. configuring a widget) is very desirable.
From your question though it seems that there are specific cases of automatic Javascript that look troubling — can you perhaps update with specifics?