Wiki

Sorted by ratingX
Displaying 431-440 of 718 result(s).

using multiple radio button

Created 2 years ago by francis jaTips4 comments – viewed 31,521 times – ( +6 / -1 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

Putting Function To Be Called In View

Created 3 years ago by junxiongTips2 comments – viewed 25,414 times – ( +6 / -1 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

How to display data from two tables in TbGridView using DataProvider?

Created 5 months ago by Rohit SutharTutorials4 comments – viewed 4,177 times – ( +6 / -1 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

Disallowing login for INACTIVE users in Yii

Created 5 months ago by Rohit SutharTutorials0 comments – viewed 2,595 times – ( +6 / -1 ) – version 1.1
In this wiki I will show how to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

model rules depended by user roles-permissions

Created about a year ago by KonApazHow-tos0 comments – viewed 6,316 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Pjax on ActiveForm and GridView - Yii2

Created about a month ago by SreenadhHow-tos1 comment – viewed 2,821 times – ( +3 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

Autocomplete in console command

Created 3 years ago by StammTutorials1 comment – viewed 7,287 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 9,102 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.

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 6 days ago by softarkTutorials0 comments – viewed 1,132 times – ( +3 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

How to use Flash, Zend AMF and Yii Framework

Created 3 years ago by janistoTutorials0 comments – viewed 8,698 times – ( +3 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF