Wiki articles in category How-tos

Showing 261-280 of 373 items.

ACL and RBAC

Created 13 years ago by zeroByte zeroByte, updated 13 years ago by kevinkorb 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: 33 785 times
Version: 1.1
Category: How-tos

Using SQLite and CDbMessageSource as a module

Created 13 years ago by pheadeaux pheadeaux, updated 13 years ago by pheadeaux 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: 23 488 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by sensorario sensorario, updated 13 years ago by Maurizio Domba Cerin 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: 23 376 times
Version: 1.1
Category: How-tos
Tags: git, github

How to hide `index` action from URL

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

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

3 1
9 followers
Viewed: 26 388 times
Version: 1.1
Category: How-tos
Tags: index

Show captcha after <N> unsuccessfull attempts

Created 13 years ago by zitter zitter, updated 13 years ago by zitter 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: 36 555 times
Version: 1.1
Category: How-tos

CSV Export

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

Adding Bash Command Completion for Yii Commands

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

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

3 0
5 followers
Viewed: 15 553 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by pckabeer pckabeer, updated 13 years ago by pckabeer 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: 26 692 times
Version: 1.1
Category: How-tos

Use phing to make Yii application "installable"

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

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

7 0
10 followers
Viewed: 16 104 times
Version: 1.1
Category: How-tos
Tags: phing

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

Created 13 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 50 729 times
Version: 1.1
Category: How-tos
Tags: blob, image

Displaying image in a CGridView column.

Created 13 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 76 660 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by bennouna bennouna, updated 11 years ago by bennouna 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: 65 854 times
Version: 1.1
Category: How-tos

CGridView keep state of page and sort.

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

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

Created 13 years ago by acorncom acorncom, updated 12 years ago by acorncom 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: 88 694 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 13 years ago by Rutger Rutger, updated 8 years ago by Rutger Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 41 741 times
Version: 1.1
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 13 years ago by softark softark, updated 10 years ago by softark 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: 61 764 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

Created 13 years ago by softark softark, updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 65 685 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by samdark samdark, updated 13 years ago by samdark 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: 21 310 times
Version: 1.1
Category: How-tos

Getting the Most out of APC for Yii

Created 13 years ago by Da:Sourcerer Da:Sourcerer, updated 11 years ago by Da:Sourcerer 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: 53 117 times
Version: 1.1
Category: How-tos
Tags: apc, caching

AssetManager: clearing browser's cache on site update

Created 13 years ago by dhampik dhampik, updated 12 years ago by dhampik 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: 62 370 times
Version: 1.1
Category: How-tos