Wiki

Sorted by commentsX
Displaying 101-110 of 786 result(s).

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 16,532 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

Using Yii with Nginx and PHP-FPM

Created 6 years ago by LericHow-tos10 comments – viewed 62,272 times – ( +18 / -1 ) – version 1.1
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

Creating a CSS Driven Drop Down Menu using CMenu

Created 6 years ago by blindMoeHow-tos10 comments – viewed 88,287 times – ( +22 / -2 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Send mail using YiiMail extension

Created 4 years ago by RKATutorials10 comments – viewed 74,182 times – ( +9 / -1 ) – version 1.1
Let me show a simpe example to send mail using YiiMail extension in 5 steps. It also includes any template view if required along with the content.
tags: YiiMail

How to automate timestamps in ActiveRecord models

Created 8 years ago by dalipTutorials9 comments – viewed 150,786 times – ( +32 / -1 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Using counters with ActiveRecord

Created 5 years ago by davi_alexandreTips9 comments – viewed 30,425 times – ( +14 / -2 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

Exporting CGridView results to CSV file

Created 5 years ago by RusAlexTutorials9 comments – viewed 48,414 times – ( +6 / -4 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 7 years ago by thyseusTutorials9 comments – viewed 49,634 times – ( +15 / -1 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Caching strategy

Created 3 years ago by darkheirHow-tos9 comments – viewed 7,285 times – ( +5 / -2 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

A Multi-Tenant Strategy using Yii and MySQL

Created 3 years ago by JFReyesHow-tos9 comments – viewed 25,720 times – ( +10 / -1 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.