Wiki articles in category Tutorials

Showing 1-20 of 37 items.

Nested Set with Yii2

Created 3 months ago by sangprabo, updated 2 months ago by sangprabo.

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

4 0
3 followers
Viewed: 2 960 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

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

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 866 times
Version: all
Category: Tutorials

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 8 821 times
Version: 2.0
Category: Tutorials

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

Created 2 years ago by emrald, updated 2 years ago by emrald.

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: 9 202 times
Version: 2.0
Category: Tutorials

Language Selector

Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 9 627 times
Version: 2.0
Category: Tutorials

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

Created 6 months ago by toaster, updated 6 months ago by toaster.

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...

7 0
2 followers
Viewed: 9 902 times
Version: 2.0
Category: Tutorials

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 236 times
Version: all
Category: Tutorials

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

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

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

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

Using your own forked version of extensions with composer

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

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

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

Working with relational removals by yii2

Created 2 years ago by AndroideLP, updated 2 years ago by Jairus Martin.

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

0 0
2 followers
Viewed: 19 727 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

Created 4 years ago by phunsanit, updated 4 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 20 785 times
Version: 2.0
Category: Tutorials

Optimize Scenarios for yii2

Created 2 years ago by AndroideLP, updated a year ago by AndroideLP.

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: 21 965 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 585 times
Version: 2.0
Category: Tutorials

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

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

Created 3 years ago by softark, updated a year ago by softark.

Assume we have many categories and many posts.

3 0
6 followers
Viewed: 28 909 times
Version: 2.0
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 4 years ago by ezekielnoob, updated 4 months ago by samdark.

grid

2 0
10 followers
Viewed: 29 258 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

Created 3 years ago by softark, updated 3 years ago by softark.

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: 29 464 times
Version: 2.0
Category: Tutorials

Simple Jui Autocomplete in yii2

Created 3 years ago by ajith, updated 3 years ago by ajith.

To use jui auto complete widget first add

0 0
3 followers
Viewed: 31 704 times
Version: 2.0
Category: Tutorials