Datepicker control (Extending/modifying CHtml helper)
Posted 01 December 2008 - 08:40 AM
If better way is extending, them where to place file, how to import it and where to use this helper?
Where to put jQuery's UI library? Is it already present somewhere in Yii? Is core jQuery library already included?
Posted 01 December 2008 - 10:10 AM
Instead, write a new widget. You may refer to CTreeView or other similar widgets and see how to do so.
jQuery core library is in Yii, but not jQuery UI. Again, refer to CTreeView and see how to include a js library.
Posted 01 December 2008 - 12:38 PM
I think it should be helpful to have the jQuery UI included in Yii, so we can avoid possible conflicts in the case several extensions use that library. If the developers know that jQuery is included in Yii, they would use this instead of including it on their extensions.
Posted 02 December 2008 - 07:44 AM
Konstantin: you can place widgets anywhere, as long as you can refer to it when using it. My personal preference is to put it under protected/components. The directory protected/extensions is used to store extensions you download from third party.