Wiki

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

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

Created 3 years ago by sirin kTips6 comments – viewed 38,902 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 4 years ago by TrejderTips6 comments – viewed 40,273 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.

Adding a link to a CDataColumn

Created 2 years ago by le_topTips6 comments – viewed 11,935 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.

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

Created 3 years ago by Antonio RamirezTips6 comments – viewed 20,445 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 3 years ago by fsbTips5 comments – viewed 31,490 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 2 years ago by Nisanth thulasiTips5 comments – viewed 4,456 times – ( +9 )
some times we want to show the serialNo on cgridview .

Change buttons on our CGridView extending yii

Created 3 years ago by sensorarioTips5 comments – viewed 26,047 times – ( +11 ) – version 1.1
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Styling Radio Buttons

Created 4 years ago by Steve FriedlTips5 comments – viewed 43,642 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):

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created about a year ago by Kartik VTips5 comments – viewed 20,458 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?

Integrating Yii with Wordpress

Created 4 years ago by isekreamTips5 comments – viewed 42,155 times – ( +10 / -1 ) – version 1.1
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...