Wiki articles

Showing 141-146 of 146 items.

RBAC Super Simple with Admin and User

Created 5 years ago by evercode, updated 4 years ago by evercode.

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 devel...

6 1
14 followers
Viewed: 79 958 times
Version: 2.0
Category: Tutorials

Save and Display Date/Time Fields in different formats in Yii2

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 145 939 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by raminious, updated 4 years ago by jim..

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)

8 0
19 followers
Viewed: 103 225 times
Version: 2.0
Category: How-tos

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 4 years ago by skworden, updated a year ago by Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

17 0
26 followers
Viewed: 190 427 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 5 years ago by Antonio Ramirez, updated 5 years ago by Antonio Ramirez.

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

29 0
31 followers
Viewed: 255 784 times
Version: 2.0
Category: How-tos

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 5 years ago by Kartik V, updated 9 months ago by softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

12 2
64 followers
Viewed: 199 697 times
Version: 2.0
Category: Tutorials