Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 81-90 of 316 result(s).

Date Picker by examples

Created about a year ago by InterboyHow-tos5 comments – viewed 44,279 times – ( +9 / -2 )
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

CGridView keep state of page and sort.

Created 2 years ago by DanielHow-tos5 comments – viewed 19,544 times – ( +6 ) – version 1.1
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

Displaying image in a CGridView column.

Created 2 years ago by sirin kHow-tos5 comments – viewed 46,027 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

CSV Export

Created 2 years ago by JohnPollardHow-tos5 comments – viewed 11,554 times – ( +4 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Using SQLite and CDbMessageSource as a module

Created 2 years ago by pheadeauxHow-tos5 comments – viewed 10,397 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

Take more control of CGridview and model searching (related model or another controller)

Created 10 months ago by KonApazHow-tos5 comments – viewed 17,074 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Dynamic Sidebar using CClipWidget

Created 3 years ago by SheldmanduHow-tos5 comments – viewed 22,451 times – ( +21 ) – version 1.1
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.

X-Sendfile - serve large static files efficiently from web applications

Created 3 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 41,086 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

How to Enhance a CGridView

Created 7 months ago by bluyellHow-tos5 comments – viewed 2,940 times – ( +4 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

Select2 Infinite Scroll With Remote Data in Yii

Created 6 months ago by amanationHow-tos5 comments – viewed 4,073 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.