Wiki articles in category How-tos

Showing 181-200 of 292 items.

Using SQLite and CDbMessageSource as a module

Created 7 years ago by pheadeaux, updated 6 years ago by pheadeaux.

There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...

3 0
9 followers
Viewed: 17 747 times
Version: 1.1
Category: How-tos

How to: use github for download yii, create new app, and store our modules or extensions.

Created 7 years ago by sensorario, updated 7 years ago by Maurizio Domba Cerin.

Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.

8 0
4 followers
Viewed: 16 225 times
Version: 1.1
Category: How-tos
Tags: git, github

How to hide `index` action from URL

Created 7 years ago by rootbear, updated 7 years ago by rootbear.

Here is my experiment inspired by my own question and others from the forum.

3 1
10 followers
Viewed: 19 736 times
Version: 1.1
Category: How-tos
Tags: index

Show captcha after <N> unsuccessfull attempts

Created 7 years ago by zitter, updated 7 years ago by zitter.

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).

13 4
16 followers
Viewed: 26 554 times
Version: 1.1
Category: How-tos

CSV Export

Created 7 years ago by JohnPollard, updated 7 years ago by JohnPollard.

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.

4 0
5 followers
Viewed: 22 190 times
Version: 1.1
Category: How-tos
Tags: csv, export

Adding Bash Command Completion for Yii Commands

Created 7 years ago by Dustin Oprea, updated 7 years ago by Dustin Oprea.

This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

3 0
5 followers
Viewed: 11 431 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by pckabeer, updated 7 years ago by pckabeer.

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 [enumDropdownList](http://www...

6 0
3 followers
Viewed: 20 751 times
Version: 1.1
Category: How-tos

Use phing to make Yii application "installable"

Created 7 years ago by sensorario, updated 7 years ago by Maurizio Domba Cerin.

To use this "how-to", you need to install phing in your machine.

7 0
10 followers
Viewed: 11 159 times
Version: 1.1
Category: How-tos
Tags: phing

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

Created 7 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

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.

8 1
11 followers
Viewed: 39 678 times
Version: 1.1
Category: How-tos
Tags: blob, image

Displaying image in a CGridView column.

Created 7 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

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.

9 1
14 followers
Viewed: 68 354 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by bennouna, updated 5 years ago by bennouna.

Let's say you have an internal messaging system in your webapp, and you want to display messages dynamically and real-time to the relevant recipients.

9 0
17 followers
Viewed: 53 688 times
Version: 1.1
Category: How-tos

CGridView keep state of page and sort.

Created 7 years ago by Daniel, updated 7 years ago by Daniel.

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.

5 0
13 followers
Viewed: 31 854 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by acorncom, updated 5 years ago by acorncom.

When you're finished following this article, you'll have a website that integrates WordPress and Yii routes in under one path. For example, you can setup /widgets and /customers to point to Yii controllers and /about-us, /contact-us, /blog/* and /faq pointing to WordPress pages.

19 0
25 followers
Viewed: 69 784 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 7 years ago by Rutger, updated 2 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 30 964 times
Version: 1.1
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 7 years ago by softark, updated 4 years ago by softark.

class Post extends CActiveRecord {

...

} ` When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.

21 0
41 followers
Viewed: 51 071 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

Created 7 years ago by softark, updated 5 years ago by Kostas Apazidis (KonApaz).

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 56 837 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by samdark, updated 7 years ago by samdark.

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:

21 0
6 followers
Viewed: 16 479 times
Version: 1.1
Category: How-tos

Getting the Most out of APC for Yii

Created 7 years ago by Da:Sourcerer, updated 5 years ago by Da:Sourcerer.

In addition to the opcode cache, APC can also serve as a user cache for Yii via [CApcCache]. It should be noted that this will make APC's memory needs less predictable.

15 0
19 followers
Viewed: 42 495 times
Version: 1.1
Category: How-tos
Tags: apc, caching

AssetManager: clearing browser's cache on site update

Created 7 years ago by dhampik, updated 6 years ago by dhampik.

If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

15 0
27 followers
Viewed: 47 460 times
Version: 1.1
Category: How-tos

Simple Share Widget for Facebook, twitter and google+

Created 7 years ago by softark, updated 4 years ago by Rohit Suthar.

This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

10 0
16 followers
Viewed: 25 747 times
Version: 1.1
Category: How-tos