Wiki

Articles in category "how-tos"X
Displaying 151-160 of 255 result(s).

Use phing to make Yii application "installable"

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

Storing your images in your table's blob field and displaying that stored images.

Created about a year ago by sirin kHow-tos6 comments – viewed 17,557 times – ( +8 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Displaying image in a CGridView column.

Created about a year ago by sirin kHow-tos5 comments – viewed 39,166 times – ( +12 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

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

Created about a year ago by bennounaHow-tos15 comments – viewed 25,505 times – ( +12 ) – version 1.1
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).

CGridView keep state of page and sort.

Created 2 years ago by DanielHow-tos3 comments – viewed 16,443 times – ( +4 ) – version 1.1
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created 2 years ago by acorncomHow-tos22 comments – viewed 26,826 times – ( +20 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

Using loginRequiredAjaxResponse to solve ajax session timeout

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

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 26,279 times – ( +28 ) – version 1.1
Let's say we have two models and relation between them:

Using CJuiDatePicker for CGridView filter

Created 2 years ago by softarkHow-tos12 comments – viewed 27,732 times – ( +19 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 2 years ago by samdarkHow-tos1 comment – viewed 8,697 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it: