Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 221-230 of 297 result(s).

How to hide `index` action from URL

Updated 2 years ago by rootbearHow-tos2 comments – viewed 10,488 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 2 years ago by xrxHow-tos16 comments – viewed 31,237 times – ( +23 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

CSV Export

Updated 2 years ago by JohnPollardHow-tos5 comments – viewed 10,537 times – ( +4 ) – version 1.1
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

Show captcha after <N> unsuccessfull attempts

Updated 2 years ago by zitterHow-tos7 comments – viewed 13,034 times – ( +14 / -4 ) – version 1.1
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).

Custom Autocomplete Display and Value Submission

Updated 2 years ago by SebKHow-tos5 comments – viewed 31,341 times – ( +12 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Adding Bash Command Completion for Yii Commands

Updated 2 years ago by Dustin OpreaHow-tos0 comments – viewed 6,273 times – ( +3 ) – version 1.1
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

Updated 2 years ago by pckabeerHow-tos1 comment – viewed 11,859 times – ( +7 ) – version 1.1
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"

Updated 2 years ago by Maurizio Domba CerinHow-tos3 comments – viewed 6,905 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

How-To: Create a REST API

Updated 2 years ago by jwernerHow-tos52 comments – viewed 201,949 times – ( +107 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

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

Updated 2 years ago by sirin kHow-tos6 comments – viewed 19,404 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