Wiki articles

Showing 21-40 of 147 items.

UUID instead of an auto-increment integer for ID with Active Record

Created 6 months ago by grigori, updated a month ago by samdark.

I have an API. It's built with a RESTful extension over Active Record, and some endpoints provide PUT methods to upload files. By a REST design we create an entity with POST /video first, and then upload a video file with PUT /video/{id}/data.

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

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

Change default date format in Oracle

Created 8 months ago by lenovo, updated 8 months ago by samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 11 932 times
Version: 2.0
Category: How-tos
Tags: database

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: 12 073 times
Version: 2.0
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 6 years ago by nineinchnick, updated 6 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: 12 095 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: 12 293 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: 12 400 times
Version: all
Category: Tutorials

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

Load & Save With Relation

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

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 13 093 times
Version: 2.0
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 6 years ago by edoardo849, updated 6 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: 13 145 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: 13 374 times
Version: 2.0
Category: How-tos

using 'whenClient' for complex client side validation

Created 6 years ago by thiagoc7, updated 6 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: 13 673 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 13 812 times
Version: 2.0
Category: Tips

Yii2cdn Component

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

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

0 0
2 followers
Viewed: 13 879 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: 14 185 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

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: 14 250 times
Version: 2.0
Category: How-tos

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 14 403 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 6 years ago by Antonio Ramirez, updated 6 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 14 636 times
Version: 2.0
Category: How-tos

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

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

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

0 3
40 followers
Viewed: 14 746 times
Version: 2.0
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 6 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 14 772 times
Version: 2.0
Category: How-tos