Wiki articles

Showing 41-60 of 166 items.

Displaying uploaded file from DB for update with FileInput widget

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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?

2 3
43 followers
Viewed: 66 056 times
Version: 2.0
Category: How-tos

Aadhar Number Validator

Created 3 years ago by shiv shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

2 2
1 follower
Viewed: 107 221 times
Version: 2.0
Category: Tips
Tags: validator

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 11 years ago by Kartik V Kartik V, updated 8 years ago by alrazi 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).

3 3
48 followers
Viewed: 70 239 times
Version: 2.0
Category: Tips

How to add a DropDown Language Picker (i18n) to the Menu

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

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 97 447 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 20 936 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

Created 11 years ago by schmunk schmunk, updated 10 years ago by schmunk 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: 15 821 times
Version: 2.0
Category: How-tos

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

Load data from internal/external source to fill form fields

Created 10 years ago by skworden skworden, updated 10 years ago by skworden 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: 38 394 times
Version: 2.0
Category: How-tos

Load & Save With Relation

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

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 20 586 times
Version: 2.0
Category: Tips

PHP built-in server integration

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

I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

1 0
3 followers
Viewed: 62 654 times
Version: 2.0
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 12 years ago by nineinchnick nineinchnick, updated 11 years ago by CeBe 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: 22 740 times
Version: all
Category: Others

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

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 8 years ago by Wade Shuler Wade Shuler, updated 7 years ago by CeBe 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: 42 264 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 11 years ago by edoardo849 edoardo849, updated 11 years ago by CeBe 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: 21 051 times
Version: 2.0
Category: Tips

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

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

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 23 987 times
Version: 2.0
Category: How-tos

using 'whenClient' for complex client side validation

Created 11 years ago by thiagoc7 thiagoc7, updated 11 years ago by thiagoc7 thiagoc7.

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 28 646 times
Version: 2.0
Category: How-tos

An alternative way to ElasticSearch

Created 7 years ago by Necip Necip, updated 3 years ago by Necip 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: 47 224 times
Version: all
Category: How-tos

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

Created 7 years ago by s.oli s.oli, updated 7 years ago by samdark 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: 32 636 times
Version: 2.0
Category: Tips

Update and Delete buttons on Breadcrumb

Created 7 years ago by Daniel Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

1 0
1 follower
Viewed: 55 883 times
Version: 2.0
Category: Tips