Wiki articles in category Tutorials

Showing 1-20 of 44 items.

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 15 177 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero jcagentzero, updated 11 years ago by jcagentzero 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: 15 254 times
Version: all
Category: Tutorials

Language Selector

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

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 18 744 times
Version: 2.0
Category: Tutorials

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

Created 9 years ago by emrald emrald, updated 9 years ago by emrald 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: 23 115 times
Version: 2.0
Category: Tutorials

Using your own forked version of extensions with composer

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V 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: 25 644 times
Version: 2.0
Category: Tutorials

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 26 324 times
Version: all
Category: Tutorials

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

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

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

2 3
41 followers
Viewed: 27 291 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 10 years ago by Scott_Huang Scott_Huang, updated 10 years ago by Scott_Huang 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: 27 871 times
Version: 2.0
Category: Tutorials

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

Created a year ago by aayushmhu aayushmhu, updated a year ago by aayushmhu aayushmhu.

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

2 0
1 follower
Viewed: 30 455 times
Version: 2.0
Category: Tutorials

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

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

YII2 : simple language Switcher Widget

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

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

Created 6 years ago by toaster toaster, updated 6 years ago by toaster 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...

8 0
2 followers
Viewed: 37 653 times
Version: 2.0
Category: Tutorials

Working with relational removals by yii2

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

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

0 0
2 followers
Viewed: 39 245 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

Created 11 years ago by Misbahul D Munir Misbahul D Munir, updated 11 years ago by Misbahul D Munir 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: 41 663 times
Version: 2.0
Category: Tutorials

Optimize Scenarios for yii2

Created 9 years ago by AndroideLP AndroideLP, updated 6 years ago by AndroideLP 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.

4 0
2 followers
Viewed: 47 040 times
Version: 2.0
Category: Tutorials

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 53 252 times
Version: 2.0
Category: Tutorials

Running applications with Docker

Created 10 years ago by schmunk schmunk, updated 10 years ago by schmunk schmunk.

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

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 54 133 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 9 years ago by softark softark, updated 6 years ago by samdark samdark.

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.

11 0
6 followers
Viewed: 62 772 times
Version: 2.0
Category: Tutorials

Handling tabular data loading and validation in Yii 2

Created 11 years ago by Kartik V Kartik V, updated 9 years ago by Said Bakr Said Bakr.

The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.

3 2
51 followers
Viewed: 63 224 times
Version: 2.0
Category: Tutorials