Wiki articles

Showing 21-40 of 142 items.

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

Created 5 years ago by realtebo, updated 4 years ago by realtebo.

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: 18 024 times
Version: 2.0
Category: Tutorials

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

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.
  • 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: 27 568 times
Version: 2.0
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated 4 months ago by samdark.
0 2
40 followers
Viewed: 13 308 times
Version: 2.0
Category: How-tos

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

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

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

0 2
40 followers
Viewed: 32 108 times
Version: 2.0
Category: FAQs

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

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

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

0 3
40 followers
Viewed: 12 399 times
Version: 2.0
Category: Tutorials

Locking your Yii 2 project package versions with composer.lock

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

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 618 times
Version: 2.0
Category: Tips

Save and Display Date/Time Fields in different formats in Yii2

Created 5 years ago by Kartik V, updated 4 years ago by Kartik V.

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 141 373 times
Version: 2.0
Category: How-tos

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

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

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: 19 287 times
Version: 2.0
Category: Tips

using 'whenClient' for complex client side validation

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

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

0 0
3 followers
Viewed: 10 953 times
Version: 2.0
Category: How-tos

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

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

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

0 0
6 followers
Viewed: 20 532 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Kartik V, updated 5 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: 23 184 times
Version: 2.0
Category: How-tos

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

Created 4 years ago by Ankit Modi, updated 4 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: 12 375 times
Version: all
Category: How-tos

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 11 229 times
Version: all
Category: Tutorials

Role Management

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

Update and Delete buttons on Breadcrumb

Created 9 months ago by Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

0 0
1 follower
Viewed: 21 523 times
Version: 2.0
Category: Tips

MongoDB's RBAC support class extending BaseManager

Created 4 years ago by edoardo849, updated 4 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: 9 345 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
0 0
5 followers
Viewed: 34 971 times
Version: 2.0
Category: How-tos

Simple Way to Upload and Save File

Created 4 years ago by Misbahul D Munir, updated 4 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: 27 969 times
Version: 2.0
Category: Tutorials

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

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

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

0 0
5 followers
Viewed: 53 868 times
Version: 2.0
Category: Tips

Managing a star rating with the StarRating widget in Yii 2

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

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 16 121 times
Version: 2.0
Category: How-tos