Sorted by date (updated)X
Displaying 411-420 of 779 result(s).

How to implement an event and attach it in a behavior

Updated 3 years ago by seb7How-tos0 comments – viewed 16,634 times – ( +6 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

Understanding the view rendering flow

Updated 3 years ago by JorgeeFAQs16 comments – viewed 185,497 times – ( +96 / -3 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Implementing a Flat User Access System

Updated 3 years ago by TrejderHow-tos1 comment – viewed 10,430 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.

Limit a CGridView field to some preset length.

Updated 3 years ago by le_topHow-tos1 comment – viewed 12,076 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Updated 3 years ago by le_topTips0 comments – viewed 8,978 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

How to change Migration Table name and use defined prefix.

Updated 3 years ago by jambandHow-tos1 comment – viewed 9,795 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.

Using Google Maps in Yii Applications via Jquery

Updated 3 years ago by bluyellHow-tos2 comments – viewed 14,523 times – ( +3 / -1 ) – version 1.1

YiiBooster: How to implement files and images upload on TbRedactor Widget

Updated 3 years ago by Antonio RamirezHow-tos3 comments – viewed 24,598 times – ( +13 ) – version 1.1
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.


Updated 3 years ago by hiral darjiTips1 comment – viewed 7,428 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array: