Wiki articles

Showing 121-140 of 140 items.
Created 4 years ago by realtebo, updated 3 years ago by realtebo.

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 17 389 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

How to use BootstrapInterface

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

1 0
2 followers
Viewed: 12 506 times
Version: 2.0
Category: How-tos
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

Cómo enviar emails usando SMTP

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

What to do when composer fails to update your vendor packages?

  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 3
36 followers
Viewed: 26 337 times
Version: 2.0
Category: Tutorials
Created 4 years ago by CTala, updated 4 years ago by CTala.

My Own Components Folder in Yii2

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 13 799 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

How to store array/widget configuration to the database with config validation rules

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

0 2
40 followers
Viewed: 11 609 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Locking your Yii 2 project package versions with composer.lock

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 9 025 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Install specific Yii2 vendor extension & dependency without updating other packages.

The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

2 3
39 followers
Viewed: 26 104 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Using the yii2-datecontrol extension along with yii2-detail-view widget

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 14 154 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Model validation for field ranges using yii2-field-range extension

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: 18 570 times
Version: 2.0
Category: Tips
Created 4 years ago by thiagoc7, updated 4 years ago by thiagoc7.

using 'whenClient' for complex client side validation

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

0 0
4 followers
Viewed: 10 046 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 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: 22 460 times
Version: 2.0
Category: How-tos
Created 4 years ago by Ankit Modi, updated 4 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: 11 769 times
Version: all
Category: How-tos
Created 4 years ago by Dency G B, updated 4 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: 15 629 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2
Created 6 months ago by CeBe, updated 6 months ago by CeBe.

Getting information from the current locale

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 3 560 times
Version: 2.0
Category: How-tos
Created 4 years ago by yiqing95, updated 4 years ago by yiqing95.

embedded javascript block in your view with IDE checking or intellisense

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

1 0
3 followers
Viewed: 7 715 times
Version: 2.0
Category: Tips
Created 2 months ago by toaster, updated 2 months ago by toaster.

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

6 0
2 followers
Viewed: 3 268 times
Version: 2.0
Category: Tutorials
Created 5 years ago by Luis Lobo Borobia, updated a year ago by Luis Lobo Borobia.

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 8 282 times
Version: all
Category: Tips
Created 4 years ago by Misbahul D Munir, updated 4 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: 27 185 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Scott_Huang, updated 4 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: 27 121 times
Version: 2.0
Category: Tips