Wiki articles in category Tutorials

Showing 1-20 of 43 items.

Create Bootstrap5 based Image carousel with thumbnails

Created 3 months ago by pravi, updated 3 months ago by pravi.

Use the following css styles for carousel to work as expected.

0 0
1 follower
Viewed: 19 844 times
Version: 2.0
Category: Tutorials

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 50 567 times
Version: 2.0
Category: Tutorials

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 13 137 times
Version: 2.0
Category: Tutorials

Working with relational removals by yii2

Created 7 years ago by AndroideLP, updated 6 years ago by Jairus Martin.

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

0 0
2 followers
Viewed: 35 286 times
Version: 2.0
Category: Tutorials

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

Created 9 years ago by realtebo, updated 8 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: 27 864 times
Version: 2.0
Category: Tutorials

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

Created 9 years ago by Kartik V, updated 9 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: 49 526 times
Version: 2.0
Category: Tutorials

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 23 628 times
Version: all
Category: Tutorials

Simple Way to Upload and Save File

Created 9 years ago by Misbahul D Munir, updated 9 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: 38 722 times
Version: 2.0
Category: Tutorials

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

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

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

2 3
41 followers
Viewed: 23 555 times
Version: 2.0
Category: Tutorials

Managing your nested dropdown dependency with DepDrop widget

Created 9 years ago by Kartik V, updated 9 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: 87 420 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

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

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

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

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

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

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 82 862 times
Version: 2.0
Category: Tutorials

Handling tabular data loading and validation in Yii 2

Created 9 years ago by Kartik V, updated 8 years ago by 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: 58 969 times
Version: 2.0
Category: Tutorials

Using your own forked version of extensions with composer

Created 9 years ago by Kartik V, updated 8 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: 23 452 times
Version: 2.0
Category: Tutorials

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 10 years ago by Charles R. Portwood II, updated 9 years ago by Vivek.

By popular demand, today I will be revisiting my previous Yii Framework 2 Getting Started Guide and updating it with what is currently available in the Yii Framework 2 Repository. Provide here is an super simple example CRUD application that will help you get started using the framework.

7 6
21 followers
Viewed: 303 855 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 8 years ago by Scott_Huang, updated 8 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: 25 451 times
Version: 2.0
Category: Tutorials

Language Selector

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

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 16 256 times
Version: 2.0
Category: Tutorials

Filter & Sort by Summary Data in GridView Yii 2.0

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

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
48 followers
Viewed: 71 642 times
Version: 2.0
Category: Tutorials

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 7 years ago by Amjad Khan, updated 7 years ago by Amjad Khan.

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

4 1
7 followers
Viewed: 87 056 times
Version: 2.0
Category: Tutorials