Wiki articles in category Tutorials

Showing 1-20 of 36 items.
Created 3 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 315 times
Version: 2.0
Category: Tutorials
Created 4 years ago by jcagentzero, updated 4 years ago by jcagentzero.

Automatically get the SVN Revision Number of your Project

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 7 389 times
Version: all
Category: Tutorials
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

A simple widget - jump2link

namespace app\components;

0 0
1 follower
Viewed: 8 509 times
Version: 2.0
Category: Tutorials
Created 2 years ago by emrald, updated 2 years ago by emrald.

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 8 664 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

0 0
5 followers
Viewed: 9 192 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Manage Email Template content from database

Hi Friends,

0 1
2 followers
Viewed: 10 802 times
Version: all
Category: Tutorials
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 617 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 14 329 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

Using your own forked version of extensions with composer

So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

3 2
40 followers
Viewed: 15 063 times
Version: 2.0
Category: Tutorials
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 393 times
Version: 2.0
Category: Tutorials
Created 2 years ago by AndroideLP, updated a year ago by Jairus Martin.

Working with relational removals by yii2

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 17 959 times
Version: 2.0
Category: Tutorials
Created 3 years ago by phunsanit, updated 3 years ago by phunsanit.

YII2 : simple language Switcher Widget

  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 18 578 times
Version: 2.0
Category: Tutorials
Created 2 years ago by AndroideLP, updated 10 months ago by AndroideLP.

Optimize Scenarios for yii2

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

3 0
2 followers
Viewed: 20 248 times
Version: 2.0
Category: Tutorials
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 342 times
Version: 2.0
Category: Tutorials
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 194 times
Version: 2.0
Category: Tutorials
Created 3 years ago by softark, updated 2 years ago by softark.

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

4 0
4 followers
Viewed: 27 246 times
Version: 2.0
Category: Tutorials
Created 3 years ago by softark, updated 10 months ago by softark.

How to create/update a model with its related items using Listbox or CheckboxList

Assume we have many categories and many posts.

3 0
6 followers
Viewed: 27 548 times
Version: 2.0
Category: Tutorials
Created 3 years ago by ezekielnoob, updated a month ago by samdark.

Simple way to implement Dynamic Tabular Inputs

grid

2 0
11 followers
Viewed: 28 134 times
Version: 2.0
Category: Tutorials
Created 3 years ago by ajith, updated 3 years ago by ajith.

Simple Jui Autocomplete in yii2

To use jui auto complete widget first add

0 0
3 followers
Viewed: 29 912 times
Version: 2.0
Category: Tutorials
Created 4 years ago by schmunk, updated 4 years ago by schmunk.

Running applications with Docker

When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

4 0
8 followers
Viewed: 31 223 times
Version: 2.0
Category: Tutorials