Wiki

Sorted by ratingX
Displaying 441-450 of 741 result(s).

Putting Function To Be Called In View

Created 4 years ago by junxiongTips2 comments – viewed 26,905 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 9 months ago by Rohit SutharTutorials4 comments – viewed 5,871 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 9 months ago by Rohit SutharTutorials0 comments – viewed 3,426 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.

RBAC Super Simple with Admin and User

Created 4 months ago by evercodeTutorials6 comments – viewed 13,759 times – ( +9 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

A simple way to get Yii client-side form validation run when submitting by ajax

Created 2 years ago by nlacTutorials5 comments – viewed 33,860 times – ( +7 / -2 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

model rules depended by user roles-permissions

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,902 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

How to setup yiic on WAMP (XP/Vista)

Created 6 years ago by krillzipTutorials3 comments – viewed 70,893 times – ( +3 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

Autocomplete in console command

Created 3 years ago by StammTutorials1 comment – viewed 7,525 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 Maciej Li┼╝ewskiHow-tos8 comments – viewed 10,427 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.

How to use Flash, Zend AMF and Yii Framework

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