Wiki

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

Troubleshooting Rights Extension

Created 2 years ago by junxiongTips6 comments – viewed 19,111 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.

Using Yii with Oracle through PDO

Created 4 years ago by TrejderTips6 comments – viewed 34,300 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.

mysql performance tip

Created 2 years ago by sirin kTips6 comments – viewed 7,538 times – ( +2 / -1 ) – version 1.1
When we are doing an insert of huge no.of rows into an SQL table ,Normally we will try to write separate insert quries this may lead us to a long duration of execution time and we can increase the speed of executing SQL quries by adding all the rows into a single insert query.
tags: mysql

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 9,706 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 18,816 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 27,377 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.

Change buttons on our CGridView extending yii

Created 3 years ago by sensorarioTips5 comments – viewed 24,146 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 =).

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 7 months ago by Kartik VTips5 comments – viewed 10,136 times – ( +29 / -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 3 years ago by isekreamTips5 comments – viewed 37,270 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...

Cgridview counter column

Created about a year ago by Nisanth thulasiTips4 comments – viewed 3,603 times – ( +8 )
some times we want to show the serialNo on cgridview .