Wiki

Sorted by viewsX
Displaying 61-70 of 598 result(s).

How to create a breadcrumb widget

Created 5 years ago by knutTutorials4 comments – viewed 49,701 times – ( +12 ) – version 1.1
Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

How to customize the error message of a validation rule

Created 5 years ago by qiangTutorials4 comments – viewed 49,668 times – ( +16 / -1 ) – version 1.1
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

How to setup RBAC with a php file

Created 4 years ago by bettorHow-tos17 comments – viewed 48,909 times – ( +26 / -4 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Update/delete model with CJuiDialog (works in CGridView)

Created 2 years ago by ifdatticTutorials6 comments – viewed 48,909 times – ( +15 ) – version 1.1
This is based on this article.

How To Customize CMenu Output

Created 3 years ago by AngeloTutorials5 comments – viewed 45,747 times – ( +9 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Using standard filters in CGridView custom fields

Created 3 years ago by GOshaHow-tos4 comments – viewed 45,501 times – ( +16 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Use crypt() for password storage

Created about a year ago by fsbTutorials12 comments – viewed 45,278 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

Implementing cron jobs with Yii

Created 3 years ago by samdarkHow-tos5 comments – viewed 45,079 times – ( +29 / -1 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

Local time zones and locales

Created 2 years ago by Russell EnglandHow-tos9 comments – viewed 44,987 times – ( +13 / -2 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

Installing Yii Users and Rights to Newly Created Yii app

Created about a year ago by Rajith RTutorials25 comments – viewed 44,967 times – ( +17 / -2 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.