Wiki articles

Showing 21-40 of 165 items.

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

Created 11 years ago by realtebo, updated 10 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: 30 085 times
Version: 2.0
Category: Tutorials

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

Created 11 years ago by Kartik V, updated 11 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 4
36 followers
Viewed: 52 095 times
Version: 2.0
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 11 years ago by Kartik V, updated 6 years ago by samdark.
0 2
40 followers
Viewed: 22 657 times
Version: 2.0
Category: How-tos

Locking your Yii 2 project package versions with composer.lock

Created 11 years ago by Kartik V, updated 11 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: 18 316 times
Version: 2.0
Category: Tips

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

Created 11 years ago by Kartik V, updated 10 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: 180 288 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V, updated 11 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: 29 699 times
Version: 2.0
Category: Tips

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

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

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

0 0
6 followers
Viewed: 66 162 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V, updated 11 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: 33 803 times
Version: 2.0
Category: How-tos

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: 22 017 times
Version: all
Category: How-tos

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 25 650 times
Version: all
Category: Tutorials

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: 25 701 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

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: 14 342 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Change default date format in Oracle

Created 5 years ago by lenovo, updated 5 years ago by samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 77 064 times
Version: 2.0
Category: How-tos
Tags: database
0 0
5 followers
Viewed: 48 103 times
Version: 2.0
Category: How-tos

Simple Way to Upload and Save File

Created 10 years ago by Misbahul D Munir, updated 10 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: 40 912 times
Version: 2.0
Category: Tutorials

Managing a star rating with the StarRating widget in Yii 2

Created 11 years ago by Kartik V, updated 11 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: 26 071 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V, updated 11 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:

1 2
41 followers
Viewed: 45 911 times
Version: 2.0
Category: FAQs

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

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

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

2 3
41 followers
Viewed: 26 152 times
Version: 2.0
Category: Tutorials

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

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

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

Managing your nested dropdown dependency with DepDrop widget

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

If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

2 3
42 followers
Viewed: 90 556 times
Version: 2.0
Category: Tutorials