Wiki

Sorted by viewsX
Displaying 421-430 of 784 result(s).

Generate a multi-lever array sub-category for a menu

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 17,141 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Simple way to implement Dynamic Tabular Inputs

Created 2 years ago by ezekielnoobTutorials5 comments – viewed 17,141 times – ( +4 ) – version all

Remove Byte Order Mark (BOM) from files recursively

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 17,088 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created 3 years ago by Ankit ModiTips0 comments – viewed 17,010 times – ( +3 ) – version 1.1
Hi Friends,

How to implement form events

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 16,937 times – ( +6 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 2 years ago by Kartik VHow-tos0 comments – viewed 16,900 times – ( +37 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Extending CActiveForm for some form display fixes and language tweaks

Created 6 years ago by TrejderTips0 comments – viewed 16,888 times – ( +5 ) – 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.

Impersonate Users within Yii Framework

Created 6 years ago by WoilTutorials6 comments – viewed 16,884 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 3 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 16,880 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

Customizing Yii's formatting rules (extending CFormatter)

Created 5 years ago by HaenselTips0 comments – viewed 16,796 times – ( +14 ) – 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.