Wiki

Sorted by viewsX
Displaying 151-160 of 752 result(s).

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

Created 3 years ago by sirin kTips5 comments – viewed 38,078 times – ( +7 ) – 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

How to filter CGridView with From Date and To Date datepicker

Created 3 years ago by kiran sharmaTips16 comments – viewed 38,043 times – ( +17 / -4 ) – 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.

Custom Autocomplete Display and Value Submission

Created 4 years ago by Antonio RamirezHow-tos5 comments – viewed 38,016 times – ( +14 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

How to use YiiBooster TbFileUpload widget

Created 2 years ago by Antonio RamirezHow-tos15 comments – viewed 37,715 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

Customizing the CMenu Widget

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

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 37,616 times – ( +12 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Real-time display of server push data using Server-Sent Events (SSE)

Created 3 years ago by bennounaHow-tos16 comments – viewed 37,420 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

using multiple radio button

Created 3 years ago by francis jaTips4 comments – viewed 37,305 times – ( +9 / -1 ) – 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().

A simple way to get Yii client-side form validation run when submitting by ajax

Created 2 years ago by nlacTutorials5 comments – viewed 37,226 times – ( +8 / -2 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Use application on production/development environment without making changes

Created 3 years ago by ifdatticTips3 comments – viewed 36,932 times – ( +8 / -1 ) – 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.