Wiki

Articles in category "tips"X
Displaying 31-40 of 99 result(s).

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 10 months ago by LuizTips1 comment – viewed 5,977 times – ( +6 )
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

How to filter CGridView with From Date and To Date datepicker

Created 11 months ago by kiran sharmaTips10 comments – viewed 13,656 times – ( +11 )
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.

Access log output from unit tests

Created 11 months ago by MikeTips2 comments – viewed 3,059 times – ( +2 )
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

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

Created 11 months ago by sirin kTips10 comments – viewed 14,148 times – ( +5 )
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 catch and log MySQL deadlock errors

Created about a year ago by sebTips0 comments – viewed 5,597 times – ( +4 )
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

using multiple radio button

Created about a year ago by francis jaTips2 comments – viewed 14,497 times – ( +5 )
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().

Troubleshooting Rights Extension

Created about a year ago by junxiongTips4 comments – viewed 10,465 times – ( +4 )
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

Update two models with one view

Created about a year ago by sensorarioTips10 comments – viewed 18,673 times – ( +10 / -2 )
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Change buttons on our CGridView extending yii

Created about a year ago by sensorarioTips4 comments – viewed 13,672 times – ( +9 )
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Use application on production/development environment without making changes

Created about a year ago by ifdatticTips2 comments – viewed 16,155 times – ( +8 / -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.