Wiki articles tagged with "yii2"

Showing 21-40 of 77 items.
Created 3 years ago by mariosimaremare, updated 3 years ago by mariosimaremare.

Moving the vendor directory for multiple projects

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

4 0
4 followers
Viewed: 15 960 times
Version: 2.0
Category: How-tos
Created 3 years ago by Sreenadh, updated 3 years ago by Sreenadh.

Pjax on ActiveForm and GridView - Yii2

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

4 0
13 followers
Viewed: 99 034 times
Version: 2.0
Category: How-tos
Created 3 years ago by hrnair, updated 3 years ago by hrnair.

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

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

2 0
7 followers
Viewed: 27 908 times
Version: 2.0
Category: How-tos
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

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

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

1 0
5 followers
Viewed: 19 967 times
Version: 2.0
Category: Tips
Created 3 years ago by Misbahul D Munir, updated 3 years ago by Misbahul D Munir.

Simple Way to Upload and Save File

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: 23 460 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 30 107 times
Version: 2.0
Category: How-tos
Created 3 years ago by Misbahul D Munir, updated 3 years ago by Misbahul D Munir.

Create Form With DynamicModel

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

0 0
7 followers
Viewed: 22 599 times
Version: 2.0
Category: Tips
Tags: form, model, yii2
Created 3 years ago by Anas AbuDayah, updated 2 years ago by Cozumel.

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

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

4 0
12 followers
Viewed: 61 050 times
Version: 2.0
Category: Tutorials
Created 3 years ago by raminious, updated 3 years ago by jim..

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

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)

6 0
18 followers
Viewed: 90 638 times
Version: 2.0
Category: How-tos
Created 3 years ago by edoardo849, updated 3 years ago by edoardo849.

MongoDB's RBAC support class extending BaseManager

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: 8 045 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
Created 3 years ago by Antonio Ramirez, updated 2 years ago by deacs.

How to implement form events

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: 20 996 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2
Created 3 years ago by sirin k, updated 10 months ago by Maurizio Domba Cerin.

Write & use a custom Component in Yii2.0

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)

11 0
11 followers
Viewed: 82 275 times
Version: 2.0
Category: How-tos
Created 3 years ago by Dency G B, updated 3 years ago by Dency G B.

Role Management

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: 12 924 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2
Created 3 years ago by ThePr0f3550r, updated 3 years ago by YiiJeka.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

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
22 followers
Viewed: 96 820 times
Version: 2.0
Category: How-tos
Created 3 years ago by ThePr0f3550r, updated 5 months ago by alrazi.

Creating a Dependent Dropdown From Scratch in Yii2

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

2 1
10 followers
Viewed: 81 760 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 years ago by Kartik V.

Nested inline active fields inside Bootstrap horizontal forms

Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

5 0
40 followers
Viewed: 42 319 times
Version: 2.0
Category: How-tos
Created 3 years ago by Antonio Ramirez, updated 3 years ago by Antonio Ramirez.

How to use yii2-authclient to communicate with Twitter using Single Access Token

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 16 973 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 years ago by Kartik V.

Managing different Bootstrap form layouts with yii2-field-range extension.

This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 20 252 times
Version: 2.0
Category: How-tos
Created 3 years ago by thiagoc7, updated 3 years ago by thiagoc7.

Book Has Author - Many to Many relations using Kartik\Select2

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 17 091 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 years ago by Kartik V.

Relational data fields display and edit with the yii2-detail-view extension

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

2 0
41 followers
Viewed: 45 946 times
Version: 2.0
Category: Tutorials