Wiki

Articles in category "tips", sorted by viewsX
Displaying 11-20 of 154 result(s).

htmlOptions explained for various controls.

Created 6 years ago by WoilTips1 comment – viewed 56,056 times – ( +18 / -1 ) – version 1.1
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 53,623 times – ( +15 / -1 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

Use application on production/development environment without making changes

Created 5 years ago by ifdatticTips3 comments – viewed 52,276 times – ( +8 / -2 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

Customizing the CMenu Widget

Created 4 years ago by mistrybTips1 comment – viewed 51,371 times – ( +5 / -2 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.

Using Yii with Oracle through PDO

Created 6 years ago by TrejderTips6 comments – viewed 51,305 times – ( +1 / -1 ) – version 1.1
When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

using multiple radio button

Created 5 years ago by francis jaTips4 comments – viewed 50,919 times – ( +9 / -2 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

How to filter CGridView with From Date and To Date datepicker

Created 5 years ago by kiran sharmaTips16 comments – viewed 50,408 times – ( +17 / -5 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Importing CSV file to mysql table using "LOAD DATA" command.

Created 5 years ago by sirin kTips6 comments – viewed 49,752 times – ( +7 / -1 ) – version 1.1
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

CGridView: Update/create records in a CJuiDialog

Created 5 years ago by JobloTips12 comments – viewed 49,098 times – ( +14 / -1 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Ajax update

Created 6 years ago by zaccariaTips2 comments – viewed 48,762 times – ( +21 / -3 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX