Wiki

Sorted by commentsX
Displaying 151-160 of 467 result(s).

Managing constants easily

Created about a year ago by briiC.lvTips4 comments – viewed 6,108 times – ( +4 )
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Change buttons on our CGridView extending yii

Created about a year ago by sensorarioTips4 comments – viewed 13,531 times – ( +9 )
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Integrating with other frameworks

Created 3 years ago by KJediTutorials4 comments – viewed 10,211 times – ( +3 / -1 )
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 3 years ago by mindehHow-tos4 comments – viewed 12,957 times – ( +32 )
Original source code and idea are from: PHP, PDO & Nested Transactions.

Troubleshooting Rights Extension

Created about a year ago by junxiongTips4 comments – viewed 10,356 times – ( +4 )
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

Tarpit for bad bots

Created about a year ago by mitherealHow-tos4 comments – viewed 3,788 times – ( +1 )
I recently built a tarpit for bad bots.
tags: tarpit, bots

Setting application parameters dynamically in the back-end

Created about a year ago by PablovpTutorials4 comments – viewed 16,649 times – ( +10 / -1 )
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created about a year ago by marcanuyTutorials4 comments – viewed 13,313 times – ( +15 )
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

Reference: Model rules validation

Created 3 years ago by krillzipHow-tos4 comments – viewed 250,355 times – ( +84 )
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

Simple access control

Created 11 months ago by szfjozsefTutorials4 comments – viewed 13,867 times – ( +2 / -6 )
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.