Wiki

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

Setting and getting systemwide static parameters

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 55,094 times – ( +10 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 54,740 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

How to create a breadcrumb widget

Created 5 years ago by knutTutorials4 comments – viewed 54,641 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.

Installing Yii Users and Rights to Newly Created Yii app

Created about a year ago by Rajith RTutorials25 comments – viewed 52,676 times – ( +20 / -10 ) – 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.

Use crypt() for password storage

Created about a year ago by fsbTutorials16 comments – viewed 52,595 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.

Update/delete model with CJuiDialog (works in CGridView)

Created 3 years ago by ifdatticTutorials6 comments – viewed 51,996 times – ( +15 ) – version 1.1
This is based on this article.

How to setup RBAC with a php file

Created 4 years ago by bettorHow-tos17 comments – viewed 51,497 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.

Implementing cron jobs with Yii

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

How To Customize CMenu Output

Created 3 years ago by AngeloTutorials7 comments – viewed 48,807 times – ( +10 ) – 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 48,062 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: