Wiki

Sorted by commentsX
Displaying 521-530 of 692 result(s).

Implementing a Flat User Access System

Created about a year ago by TrejderHow-tos1 comment – viewed 7,418 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

How to create the custom Drop-down using CHtml::dropDownList

Created 2 months ago by Ankit ModiHow-tos1 comment – viewed 1,529 times – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

How to change Migration Table name and use defined prefix.

Created about a year ago by JorgeeHow-tos1 comment – viewed 5,604 times – ( +3 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 2 months ago by le_topTips1 comment – viewed 1,518 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created 3 years ago by Revelis Luc BonninHow-tos1 comment – viewed 20,658 times – ( +9 / -1 ) – version 1.1
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

How to use a component before every action of a controller

Created about a year ago by transistorTips1 comment – viewed 17,094 times – ( +2 / -1 ) – version 1.1
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

Profiling using XDebug

Created about a year ago by le_topHow-tos1 comment – viewed 5,351 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Configuring CWebLogRoute for DB profiling

Created 3 years ago by Igor IvanovicTutorials1 comment – viewed 16,238 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

Cron Jobs in Yii

Created about a year ago by aarondfrancisHow-tos1 comment – viewed 13,095 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Check users online, user last activity, user last ip

Created a day ago by frazelliHow-tos1 comment – viewed 659 times – ( +1 ) – version 1.1
DbHttpSession