Wiki

Articles in category "tips", sorted by commentsX
Displaying 21-30 of 153 result(s).

Troubleshooting Rights Extension

Created 4 years ago by junxiongTips6 comments – viewed 22,777 times – ( +8 ) – version 1.1
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.

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

Created 4 years ago by sirin kTips6 comments – viewed 45,990 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

Using Yii with Oracle through PDO

Created 5 years ago by TrejderTips6 comments – viewed 46,701 times – ( +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.

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 2 years ago by Kartik VTips6 comments – viewed 32,268 times – ( +39 / -4 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 15,046 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Adding a date range search for CGridView the easy way

Created 3 years ago by mikewalenTips6 comments – viewed 28,324 times – ( +12 ) – version 1.1
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.

Avoiding duplicate script download when using Ajax calls to render different Views

Created 5 years ago by Antonio RamirezTips6 comments – viewed 22,703 times – ( +13 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

1:n relations sometimes require CDbCriteria.together

Created 4 years ago by fsbTips5 comments – viewed 36,118 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

Cgridview counter column

Created 3 years ago by Nisanth thulasiTips5 comments – viewed 5,466 times – ( +9 )
some times we want to show the serialNo on cgridview .

Styling Radio Buttons

Created 5 years ago by Steve FriedlTips5 comments – viewed 49,524 times – ( +15 ) – 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):