Wiki articles

Showing 21-40 of 164 items.

Single PHP entry point with Nginx

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

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 17 454 times
Version: all
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 9 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: 17 534 times
Version: 2.0
Category: Tips

Load & Save With Relation

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

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 17 659 times
Version: 2.0
Category: Tips

Yii2cdn Component

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

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

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

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 18 232 times
Version: 2.0
Category: Tips

Tunneling using SSH in a limited enviroment

Created 10 years ago by nineinchnick, updated 9 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: 18 656 times
Version: all
Category: Others

REST API and null values in XML

Created 7 years ago by marko60, updated 7 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: 19 432 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 19 441 times
Version: 2.0
Category: How-tos

Execute migration on server/linux using shell

Created 8 years ago by darioo, updated 8 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: 19 490 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 9 years ago by Antonio Ramirez, updated 9 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: 19 567 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by Ankit Modi, updated 9 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: 20 424 times
Version: all
Category: How-tos

Getting information from the current locale

Created 5 years ago by CeBe, updated 5 years 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: 20 520 times
Version: 2.0
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 9 years ago by Kartik V, updated 5 years ago by samdark.
0 2
40 followers
Viewed: 20 662 times
Version: 2.0
Category: How-tos

My Own Components Folder in Yii2

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

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 20 734 times
Version: 2.0
Category: Tips

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

Created 9 years ago by Kartik V, updated 9 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: 20 860 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 10 years ago by le_top, updated 8 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 21 252 times
Version: all
Category: How-tos

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 8 years ago by Louis Gac, updated 8 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 22 223 times
Version: 2.0
Category: Tips

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

Created 7 years ago by Wade Shuler, updated 7 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: 22 880 times
Version: 2.0
Category: How-tos

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