Wiki articles

Showing 81-100 of 154 items.

RBAC Super Simple with Admin and User

Created 5 years ago by evercode, updated 5 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: 86 575 times
Version: 2.0
Category: Tutorials

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 5 years ago by Deepak Pradhan, updated 5 years ago by Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 6 379 times
Version: 2.0
Category: Tips

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created 5 years ago by hrnair, updated 5 years ago by hrnair.

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 37 211 times
Version: 2.0
Category: How-tos

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 5 years ago by Scott_Huang, updated 5 years ago by Scott_Huang.

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 41 711 times
Version: 2.0
Category: Tips

Step by step for how to full export Yii2 grid to excel

Created 6 years ago by Scott_Huang, updated 6 years ago by Scott_Huang.

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

0 0
5 followers
Viewed: 61 726 times
Version: 2.0
Category: Tips

Simple Way to Upload and Save File

Created 6 years ago by Misbahul D Munir, updated 6 years ago by Misbahul D Munir.

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 31 029 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 39 085 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

Created 6 years ago by Misbahul D Munir, updated 6 years ago by Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

3 0
8 followers
Viewed: 37 099 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 6 years ago by Anas AbuDayah, updated 4 years ago by Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
14 followers
Viewed: 83 799 times
Version: 2.0
Category: Tutorials

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

Created 6 years ago by raminious, updated 5 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)

9 0
20 followers
Viewed: 108 708 times
Version: 2.0
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 6 years ago by edoardo849, updated 6 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 10 518 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

embedded javascript block in your view with IDE checking or intellisense

Created 6 years ago by yiqing95, updated 6 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 9 583 times
Version: 2.0
Category: Tips

How to implement form events

Created 6 years ago by Antonio Ramirez, updated 4 years ago by deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 29 726 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Building a REST API in Yii2.0

Created 6 years ago by sirin k, updated 3 years ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 136 376 times
Version: 2.0
Category: Tutorials

Write & use a custom Component in Yii2.0

Created 6 years ago by sirin k, updated 3 years ago by Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

13 0
11 followers
Viewed: 106 606 times
Version: 2.0
Category: How-tos

Role Management

Created 6 years ago by Dency G B, updated 6 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 19 143 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Manage Email Template content from database

Created 6 years ago by Ankit Modi, updated 6 years ago by Ankit Modi.

Hi Friends,

0 1
1 follower
Viewed: 12 929 times
Version: all
Category: Tutorials

How to sum (Update) of all input button price value using jquery

Created 6 years ago by Ankit Modi, updated 6 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 15 576 times
Version: all
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 6 years ago by ThePr0f3550r, updated 5 years ago by YiiJeka.

Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"

8 0
21 followers
Viewed: 118 196 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 6 years ago by ThePr0f3550r, updated 2 years ago by alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

4 1
11 followers
Viewed: 119 868 times
Version: 2.0
Category: How-tos