Wiki articles

Showing 41-60 of 142 items.

Displaying uploaded file from DB for update with FileInput widget

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

This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

1 3
42 followers
Viewed: 46 790 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Kartik V, updated 5 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: 28 263 times
Version: 2.0
Category: Tips

Managing your nested dropdown dependency with DepDrop widget

Created 5 years ago by Kartik V, updated 5 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
43 followers
Viewed: 35 245 times
Version: 2.0
Category: Tutorials

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 5 years ago by Kartik V, updated a year ago by alrazi.

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

2 2
47 followers
Viewed: 51 900 times
Version: 2.0
Category: Tips

Handling tabular data loading and validation in Yii 2

Created 5 years ago by Kartik V, updated 3 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.

2 2
51 followers
Viewed: 47 914 times
Version: 2.0
Category: Tutorials

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 12 588 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

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

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 7 886 times
Version: 2.0
Category: How-tos

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

Load data from internal/external source to fill form fields

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

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5 followers
Viewed: 22 368 times
Version: 2.0
Category: How-tos

Load & Save With Relation

Created 4 years ago by moo.tensai, updated 4 years ago by moo.tensai.

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 11 876 times
Version: 2.0
Category: Tips

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

Tunneling using SSH in a limited enviroment

Created 5 years ago by nineinchnick, updated 5 years ago by CeBe.

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 10 876 times
Version: all
Category: Others

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

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 2 years ago by Wade Shuler, updated a year ago by CeBe.

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 21 624 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 5 years ago by edoardo849, updated 5 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 12 195 times
Version: 2.0
Category: Tips

Yii2 default values for Index data Provider

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

Guys,

1 0
5 followers
Viewed: 24 817 times
Version: 2.0
Category: Tips

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

Created 5 years ago by Kartik V, updated 5 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: 66 153 times
Version: 2.0
Category: Tutorials

Using the yii2-datecontrol extension along with yii2-detail-view widget

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

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 14 910 times
Version: 2.0
Category: How-tos

An alternative way to ElasticSearch

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

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 7 309 times
Version: all
Category: How-tos

How to organize Design "things" in Yii 2 (themes and layout)

Created a year ago by s.oli, updated 11 months ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 12 048 times
Version: 2.0
Category: Tips