Wiki

Sorted by commentsX
Displaying 301-310 of 719 result(s).

Encapsulate db and module configurations

Created 5 years ago by ricardogranaTutorials3 comments – viewed 9,904 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 12,568 times – ( +7 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to timezones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "timezone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical timezones and daylight saving times.

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 5 years ago by mindplayTutorials3 comments – viewed 19,853 times – ( +7 ) – version 1.1
During development, it's often very handy to have SQL logging and profiling.
tags: Logging

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 2 years ago by c@cbaTutorials3 comments – viewed 41,757 times – ( +28 / -1 ) – version 1.1
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

Remove Byte Order Mark (BOM) from files recursively

Created about a year ago by KonApazHow-tos3 comments – viewed 6,304 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.

How to include Javascript, CSS

Created about a year ago by InterboyHow-tos3 comments – viewed 306,598 times – ( +9 / -2 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

Performance - A Guide For Best Practice

Created 4 years ago by Y!!Tutorials3 comments – viewed 15,798 times – ( +8 / -5 ) – version 1.1
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
tags: performance

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 2 years ago by RutgerHow-tos3 comments – viewed 19,464 times – ( +12 ) – version 1.1
This solution requires Yii 1.1.9 or above

Add charts / print buttons to your webapp

Created 4 years ago by CoLTTutorials3 comments – viewed 21,477 times – ( +7 ) – version 1.1
In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
tags: chart, print, flash, excel, csv, pdf, xls

Use phing to make Yii application "installable"

Created 2 years ago by sensorarioHow-tos3 comments – viewed 7,403 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing