Wiki

Sorted by date (updated)X
Displaying 1-10 of 469 result(s).

Using CListView to display items next to each other (in columns)

Updated about 20 hours ago by thyseusTips0 comments – viewed 584 times – ( +1 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Debugging CActiveRecord failed save() attempts

Updated a day ago by BoazTips0 comments – viewed 593 times – ( +4 )
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

How to Setting Layouts in Yii

Updated 3 days ago by ruderbytesHow-tos1 comment – viewed 3,591 times – ( +2 / -3 )
usually someone confused to make layouts in yii.

Turn Web HTML Into Newsletter

Updated 4 days ago by yasenHow-tos0 comments – viewed 3,849 times – ( +5 )
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Real-time display of server push data using Server-Sent Events (SSE)

Updated 5 days ago by bennounaHow-tos11 comments – viewed 14,214 times – ( +11 )
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

Catching bounce messages (NDR) and piping them to a Yii command

Updated 5 days ago by bennounaTutorials0 comments – viewed 3,223 times – ( +1 )
In order to avoid bounce messages and unsolicited registrations, most webapps send automatic activation emails upon user registration, and the account remain inactive as long as it is not activated. Better yet, you can periodically purge your data by removing accounts that have not yet been activated.

Implementing a WebDAV server using SabreDAV

Updated 15 days ago by nineinchnickTutorials2 comments – viewed 1,247 times – ( +4 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

defaultScope

Updated 15 days ago by Gerhard LiebenbergHow-tos4 comments – viewed 1,882 times – ( +3 )
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Cron Jobs in Yii

Updated 16 days ago by aarondfrancisHow-tos1 comment – viewed 2,855 times – ( +2 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.