Wiki

Sorted by date (updated)X
Displaying 131-140 of 786 result(s).

RBAC Super Simple with Admin and User

Updated 3 years ago by evercodeTutorials11 comments – viewed 64,751 times – ( +17 / -4 ) – 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.

How to hide /frontend/web in url addresses on apache

Updated 3 years ago by yiimHow-tos15 comments – viewed 88,859 times – ( +19 / -1 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

Google style sign out of all other sessions

Updated 3 years ago by Rohit SutharHow-tos2 comments – viewed 9,798 times – ( +4 / -1 ) – version 1.1
In this wiki I will show how could logout from all other sessions or all other places.

Yii 2 list of path aliases available with default basic and advanced app.

Updated 3 years ago by Kartik VTips3 comments – viewed 106,703 times – ( +53 / -6 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

checkBox in CGridview

Updated 3 years ago by n-rOthers1 comment – viewed 19,362 times – ( +1 / -1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

Drills : Search by a HAS_MANY relation in Yii 1.1

Updated 3 years ago by softarkTutorials13 comments – viewed 51,439 times – ( +34 / -1 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

How to pass the third parameter to UserIdentity on login authentication

Updated 3 years ago by Rohit SutharHow-tos6 comments – viewed 18,162 times – ( +2 / -1 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

Creating a dependent dropdown

Updated 3 years ago by Paul_KishTutorials53 comments – viewed 337,894 times – ( +112 / -4 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

Widget Personalizado

Updated 3 years ago by CálcioTutorials0 comments – viewed 8,273 times – ( +6 / -1 ) – version 1.1
Here I will explain with the clear way and objective an use the widget with CDataProvider.

How to use Expression in default AccessControl to allow only the owner to do some action

Updated 3 years ago by DineshRHow-tos2 comments – viewed 42,468 times – ( +8 / -2 ) – version 1.1
Hi Everyone