Wiki

Sorted by viewsX
Displaying 431-440 of 741 result(s).

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 11 months ago by Kartik VTutorials0 comments – viewed 10,706 times – ( +36 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

How to use bizRules in standard accessControl filter

Created about a year ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 10,697 times – ( +3 ) – 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.

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

Created 2 years ago by Xgamer99Tips3 comments – viewed 10,596 times – ( +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.

caching controllers with filters()

Created 4 years ago by RusAlexHow-tos1 comment – viewed 10,584 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Using updateAll and deleteAll with scopes

Created 9 months ago by le_topHow-tos4 comments – viewed 10,528 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Encapsulate db and module configurations

Created 5 years ago by ricardogranaTutorials3 comments – viewed 10,441 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

ChromePHP for Yii

Created 4 years ago by imeheszTips0 comments – viewed 10,408 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 10,334 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Using CListView to display items next to each other (in columns)

Created about a year ago by thyseusTips4 comments – viewed 10,279 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Yii code completion and calltips in Komodo Edit

Created 4 years ago by viterTips1 comment – viewed 10,227 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit