Wiki

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

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 57,814 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.

Guidelines for good schema design

Created 3 years ago by Steve FriedlTips15 comments – viewed 57,735 times – ( +140 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

Use crypt() for password storage

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

Installing Yii Users and Rights to Newly Created Yii app

Created about a year ago by Rajith RTutorials25 comments – viewed 57,339 times – ( +21 / -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.

How to create a breadcrumb widget

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

Update/delete model with CJuiDialog (works in CGridView)

Created 3 years ago by ifdatticTutorials6 comments – viewed 54,045 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 53,020 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 51,911 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 50,899 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

Creating a parameterized LIKE query

Created 3 years ago by Steve FriedlFAQs6 comments – viewed 50,843 times – ( +22 ) – version 1.1
It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column