Wiki articles in category How-tos

Showing 41-60 of 80 items.

`forceCopy` per Asset Bundle

Created 9 years ago by schmunk, updated 9 years ago by schmunk.

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: 13 594 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by robregonm, updated 9 years ago by robregonm.

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.

9 0
6 followers
Viewed: 35 356 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

Created 9 years ago by mariosimaremare, updated 9 years ago by mariosimaremare.

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

5 0
5 followers
Viewed: 31 774 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 10 years ago by Sreenadh, updated 10 years ago by Sreenadh.

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

7 0
16 followers
Viewed: 166 640 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by hrnair, updated 10 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: 44 996 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 46 884 times
Version: 2.0
Category: How-tos

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

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

10 0
21 followers
Viewed: 127 942 times
Version: 2.0
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 10 years ago by edoardo849, updated 10 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: 13 878 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

How to implement form events

Created 10 years ago by Antonio Ramirez, updated 8 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: 39 434 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Write & use a custom Component in Yii2.0

Created 10 years ago by sirin k, updated 7 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)

14 0
11 followers
Viewed: 124 419 times
Version: 2.0
Category: How-tos

Role Management

Created 10 years ago by Dency G B, updated 10 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: 24 871 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

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

Created 10 years ago by Ankit Modi, updated 10 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: 21 165 times
Version: all
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 10 years ago by ThePr0f3550r, updated 9 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"

9 0
22 followers
Viewed: 133 750 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 10 years ago by ThePr0f3550r, updated 6 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
12 followers
Viewed: 160 673 times
Version: 2.0
Category: How-tos

Nested inline active fields inside Bootstrap horizontal forms

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

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: 58 099 times
Version: 2.0
Category: How-tos

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

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

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: 26 157 times
Version: 2.0
Category: How-tos

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

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

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: 32 716 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by thiagoc7, updated 10 years ago by thiagoc7.

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

0 0
6 followers
Viewed: 65 546 times
Version: 2.0
Category: How-tos

using 'whenClient' for complex client side validation

Created 10 years ago by thiagoc7, updated 10 years ago by thiagoc7.

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 26 094 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

Created 10 years ago by CTala, updated 10 years ago by CTala.

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 32 753 times
Version: 2.0
Category: How-tos