Wiki articles

Showing 21-40 of 145 items.

Getting information from the current locale

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

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 10 338 times
Version: 2.0
Category: How-tos

Integrating ZF2 into Yii - use case demonstrated

Created 6 years ago by Boaz, updated 5 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 10 406 times
Version: 2.0
Category: How-tos

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 10 555 times
Version: 2.0
Category: Tips

Yii v2 snippet guide

Created a month ago by rackycz, updated 23 days ago by rackycz.

Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks

2 0
1 follower
Viewed: 10 634 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: 11 237 times
Version: all
Category: Others

Simple Google Maps object for use with ajax maps

Created 4 years ago by Chris Backhouse, updated 4 years ago by Chris Backhouse.

The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.

0 0
3 followers
Viewed: 11 663 times
Version: 2.0
Category: How-tos

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 11 773 times
Version: all
Category: Tutorials

using 'whenClient' for complex client side validation

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

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

0 0
3 followers
Viewed: 12 060 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: 12 226 times
Version: 2.0
Category: Tips

Yii2: Query build for complexity SQL

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

As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

0 0
3 followers
Viewed: 12 258 times
Version: 2.0
Category: Tips

Execute migration on server/linux using shell

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

It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

0 0
3 followers
Viewed: 12 262 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 492 times
Version: 2.0
Category: Tips

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 3 years ago by Wade Shuler, updated 3 years ago by Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 12 682 times
Version: 2.0
Category: How-tos

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 927 times
Version: 2.0
Category: Tips

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

Created 11 months ago by toaster, updated 11 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...

8 0
3 followers
Viewed: 13 218 times
Version: 2.0
Category: Tutorials

Yii2cdn Component

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

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 13 237 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

REST API and null values in XML

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

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 13 257 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

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

Created a year ago by s.oli, updated a year 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: 13 305 times
Version: 2.0
Category: Tips

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

How to sum (Update) of all input button price value using jquery

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

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 13 714 times
Version: all
Category: How-tos