Wiki articles in category How-tos

Showing 21-40 of 68 items.
2 0
2 followers
Viewed: 16 932 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated 20 days ago by Yii3.

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

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.

13 0
26 followers
Viewed: 156 302 times
Version: 2.0
Category: How-tos
Created 3 years ago by MadAnd, updated 2 years ago by MadAnd.

yii2-app-advanced on single domain (Apache, Nginx)

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

3 0
13 followers
Viewed: 73 743 times
Version: 2.0
Category: How-tos
Created 3 years ago by skworden, updated 3 years ago by skworden.

Use kartik Growl with Yii2 flash messages

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

5 0
10 followers
Viewed: 31 994 times
Version: 2.0
Category: How-tos
Created 3 years ago by schmunk, updated 3 years ago by schmunk.

`forceCopy` per Asset Bundle

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 5 873 times
Version: 2.0
Category: How-tos
Created 3 years ago by robregonm, updated 3 years ago by robregonm.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

5 0
5 followers
Viewed: 17 345 times
Version: 2.0
Category: How-tos
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 950 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 000 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 902 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 30 096 times
Version: 2.0
Category: How-tos
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 620 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 043 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 976 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 243 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 915 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2
Created 3 years ago by Ankit Modi, updated 3 years ago by Ankit Modi.

How to show Image view after upload and delete view image using eajaxupload extension

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
3 followers
Viewed: 13 468 times
Version: all
Category: How-tos
Created 3 years ago by Ankit Modi, updated 3 years ago by Ankit Modi.

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

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: 9 749 times
Version: all
Category: How-tos
Created 3 years ago by Ankit Modi, updated 3 years ago by Ankit Modi.

How to create the custom Drop-down using CHtml::dropDownList

Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

0 0
2 followers
Viewed: 18 291 times
Version: all
Category: How-tos
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 794 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 718 times
Version: 2.0
Category: How-tos