Wiki articles

Showing 21-40 of 165 items.

Auto-update denormalized attributes with MongoDb and Yii2

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

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 19 533 times
Version: 2.0
Category: Tips

Single PHP entry point with Nginx

Created 10 years ago by MadAnd, updated 10 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: 19 796 times
Version: all
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 11 years ago by nineinchnick, updated 11 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: 21 033 times
Version: all
Category: Others

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez, updated 11 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: 21 092 times
Version: 2.0
Category: How-tos

Execute migration on server/linux using shell

Created 9 years ago by darioo, updated 9 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: 21 185 times
Version: 2.0
Category: How-tos

REST API and null values in XML

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

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

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

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 8 years ago by emrald, updated 8 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: 21 990 times
Version: 2.0
Category: Tutorials

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

Created 10 years ago by Ankit Modi, updated 10 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: 22 017 times
Version: all
Category: How-tos

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

Created 9 months ago by aayushmhu, updated 9 months ago by aayushmhu.

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

2 0
1 follower
Viewed: 22 062 times
Version: 2.0
Category: Tutorials

My Own Components Folder in Yii2

Created 11 years ago by CTala, updated 11 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: 22 094 times
Version: 2.0
Category: Tips

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

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

How to read HTML5 Multiple File Input from controller?

Created 11 years ago by Kartik V, updated 6 years ago by samdark.
0 2
40 followers
Viewed: 22 657 times
Version: 2.0
Category: How-tos

Getting information from the current locale

Created 6 years ago by CeBe, updated 6 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: 22 770 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 12 years ago by le_top, updated 10 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: 23 439 times
Version: all
Category: How-tos

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

Created 10 years ago by Louis Gac, updated 10 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: 24 560 times
Version: 2.0
Category: Tips

Using your own forked version of extensions with composer

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

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 25 652 times
Version: all
Category: Tutorials

Role Management

Created 10 years ago by Dency G B, updated 10 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 25 704 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2