Wiki

Articles in category "how-tos"X
Displaying 81-90 of 189 result(s).

Show captcha after <N> unsuccessfull attempts

Created about a year ago by zitterHow-tos6 comments – viewed 7,961 times – ( +14 / -3 )
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

CSV Export

Created about a year ago by JohnPollardHow-tos5 comments – viewed 5,924 times – ( +4 )
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Adding Bash Command Completion for Yii Commands

Created about a year ago by Dustin OpreaHow-tos0 comments – viewed 4,169 times – ( +2 )
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created about a year ago by pckabeerHow-tos1 comment – viewed 6,739 times – ( +6 )
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Use phing to make Yii application "installable"

Created about a year ago by sensorarioHow-tos3 comments – viewed 5,026 times – ( +7 )
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-tos5 comments – viewed 11,314 times – ( +8 / -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 24,338 times – ( +12 / -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 15,650 times – ( +12 )
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 about a year ago by DanielHow-tos3 comments – viewed 10,638 times – ( +3 )
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 about a year ago by fr0d0zHow-tos12 comments – viewed 14,014 times – ( +19 )
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.