Wiki

Sorted by viewsX
Displaying 491-500 of 786 result(s).

Update related models of a model using listBox and checkBoxList in the form

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 15,546 times – ( +2 / -1 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

How to use bizRules in standard accessControl filter

Created 4 years ago by Maciej LiżewskiHow-tos8 comments – viewed 15,540 times – ( +3 / -1 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 2 years ago by robregonmHow-tos2 comments – viewed 15,377 times – ( +11 / -2 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

Alternative folder structure for a standard Yii app

Created 4 years ago by TrejderHow-tos4 comments – viewed 15,373 times – ( +5 / -1 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

free PHP IDE CodeLobster supports Yii framework

Created 6 years ago by clodTutorials0 comments – viewed 15,324 times – ( +5 / -1 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

default csrf security and ajax post in one controller

Created 3 years ago by jasonbanTutorials3 comments – viewed 15,319 times – ( +1 / -4 ) – version 1.1
Hello Yii friends

How to create a wrapper for a js library

Created 6 years ago by zaccariaHow-tos2 comments – viewed 15,229 times – ( +16 / -2 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

adding class and links to Ctreeview node

Created 6 years ago by bingjie2680Tips2 comments – viewed 15,181 times – ( +4 / -1 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Model validation for field ranges using yii2-field-range extension

Created 3 years ago by Kartik VTips0 comments – viewed 14,929 times – ( +39 / -1 ) – version 2.0
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.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 5 years ago by Xgamer99Tips3 comments – viewed 14,864 times – ( +1 / -1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.