Wiki

Sorted by viewsX
Displaying 411-420 of 785 result(s).

How to create a simple logout link in the view?

Created 3 years ago by mi.sarahHow-tos0 comments – viewed 18,724 times – ( +1 / -4 ) – version 1.1
Here you learn to create and set a simple ahref-link to logout the current user.
tags: Logout, Link, user, URL, views

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 5 years ago by pckabeerHow-tos1 comment – viewed 18,607 times – ( +7 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

How to implement an event and attach it in a behavior

Created 4 years ago by seb7How-tos0 comments – viewed 18,584 times – ( +6 / -1 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

How to implement form events

Created 3 years ago by Antonio RamirezHow-tos4 comments – viewed 18,582 times – ( +6 / -1 ) – 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

Remove Byte Order Mark (BOM) from files recursively

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

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created 2 years ago by Gerhard LiebenbergHow-tos6 comments – viewed 18,329 times – ( -1 ) – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

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

Created 3 years ago by Kartik VHow-tos0 comments – viewed 18,322 times – ( +37 / -1 ) – 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.

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

Created 4 years ago by Ankit ModiTips0 comments – viewed 18,251 times – ( +3 / -1 ) – version 1.1
Hi Friends,

Using Grunt for deploying client scripts

Created 4 years ago by Chris83How-tos8 comments – viewed 18,237 times – ( +11 / -1 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

Simple Jui Autocomplete in yii2

Created about a year ago by ajithTutorials4 comments – viewed 18,228 times – ( -2 ) – version 2.0
In this tutorial i will explain how to use jui auto complete in yii2. The Autocomplete widget enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.