Yii: Show Database records in UI Dialog
I want to load a list of records into a jQuery UI Dialog with a ajax-call. Here i would need a working ajax pagination. I tryed 'zii.widgets.CListView', but could not get it to work properly. Do i have to write the List/Pagination all by my self or is there a easy solution?
As i am not a big fan of the yii-jQuery functions, i handle the Dialog and the aja开发者_StackOverflow社区x call by myself.
You shouldn't have to write anything yourself to get the default functions working. There are number of optional attributes you can define to change the way it renders, see: http://www.yiiframework.com/doc/api/1.1/CListView
You can further change the way it looks via basic CSS.
Which part isn't working for you?
One thing you can try is to use the Gii tools and have Yii create the CRUD files for you and then you can modify or use that output as a guide.
精彩评论