Wiki articles in category How-tos

Showing 261-280 of 373 items.

ACL and RBAC

Created 12 years ago by zeroByte, updated 12 years ago by kevinkorb.

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
3 followers
Viewed: 30 520 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 12 years ago by pheadeaux, updated 12 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: 22 633 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by sensorario, updated 12 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: 22 556 times
Version: 1.1
Category: How-tos
Tags: git, github

How to hide `index` action from URL

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

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

3 1
9 followers
Viewed: 25 262 times
Version: 1.1
Category: How-tos
Tags: index

Show captcha after <N> unsuccessfull attempts

Created 12 years ago by zitter, updated 12 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
15 followers
Viewed: 35 312 times
Version: 1.1
Category: How-tos

CSV Export

Created 12 years ago by JohnPollard, updated 12 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: 30 023 times
Version: 1.1
Category: How-tos
Tags: csv, export

Adding Bash Command Completion for Yii Commands

Created 12 years ago by Dustin Oprea, updated 12 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: 14 961 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by pckabeer, updated 12 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: 25 633 times
Version: 1.1
Category: How-tos

Use phing to make Yii application "installable"

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

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

7 0
10 followers
Viewed: 15 112 times
Version: 1.1
Category: How-tos
Tags: phing

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

Created 12 years ago by sirin k, updated 7 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 2
11 followers
Viewed: 49 307 times
Version: 1.1
Category: How-tos
Tags: blob, image

Displaying image in a CGridView column.

Created 12 years ago by sirin k, updated 7 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: 75 358 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by bennouna, updated 11 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: 64 408 times
Version: 1.1
Category: How-tos

CGridView keep state of page and sort.

Created 12 years ago by Daniel, updated 12 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: 36 249 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by acorncom, updated 11 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
24 followers
Viewed: 86 334 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

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

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 37 431 times
Version: 1.1
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 12 years ago by softark, updated 9 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
40 followers
Viewed: 60 505 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

Created 12 years ago by softark, updated 10 years ago by Kostas Apazidis (KonApaz).

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 64 452 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by samdark, updated 12 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
5 followers
Viewed: 20 682 times
Version: 1.1
Category: How-tos

Getting the Most out of APC for Yii

Created 12 years ago by Da:Sourcerer, updated 10 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: 51 596 times
Version: 1.1
Category: How-tos
Tags: apc, caching

AssetManager: clearing browser's cache on site update

Created 12 years ago by dhampik, updated 11 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
25 followers
Viewed: 61 142 times
Version: 1.1
Category: How-tos