Wiki

Sorted by viewsX
Displaying 451-460 of 786 result(s).

Adding a link to a CDataColumn

Created 4 years ago by le_topTips6 comments – viewed 17,744 times – ( +3 / -1 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

How to pass the third parameter to UserIdentity on login authentication

Created 3 years ago by Rohit SutharHow-tos6 comments – viewed 17,706 times – ( +2 / -1 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

Customizing Yii's formatting rules (extending CFormatter)

Created 6 years ago by HaenselTips0 comments – viewed 17,701 times – ( +14 / -1 ) – version 1.1
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

How to hide `index` action from URL

Created 5 years ago by rootbearHow-tos2 comments – viewed 17,692 times – ( +3 / -3 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Extending CActiveForm for some form display fixes and language tweaks

Created 7 years ago by TrejderTips0 comments – viewed 17,632 times – ( +5 / -1 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

Created 2 years ago by softarkTutorials0 comments – viewed 17,464 times – ( +6 / -1 ) – version 2.0
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

Sub-domains with different databases in Yii!

Created 6 years ago by jwerdHow-tos5 comments – viewed 17,461 times – ( +2 / -1 ) – version 1.1
Sub-domains with different databases in Yii!

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

Created 3 years ago by Ankit ModiHow-tos1 comment – viewed 17,406 times – ( -1 ) – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

Open Dialog from ajax content

Created 4 years ago by TouzasHow-tos1 comment – viewed 17,402 times – ( +4 / -2 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 5 years ago by LuizTips1 comment – viewed 17,382 times – ( +7 / -1 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.