Wiki articles

Showing 21-40 of 166 items.

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

YII2 Pagination Options

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

solution here If we are using default pagination option like

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

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

Single PHP entry point with Nginx

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

Execute migration on server/linux using shell

Created 10 years ago by darioo darioo, updated 10 years ago by darioo 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: 22 279 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 11 years ago by Antonio Ramirez 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: 22 407 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 532 times
Version: all
Category: Others

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 22 705 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Ankit Modi Ankit Modi, updated 11 years ago by Ankit Modi 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: 23 087 times
Version: all
Category: How-tos

My Own Components Folder in Yii2

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

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

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: 23 772 times
Version: 2.0
Category: Tutorials
0 2
40 followers
Viewed: 24 132 times
Version: 2.0
Category: How-tos

REST API and null values in XML

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

Getting information from the current locale

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

Profiling using XDebug

Created 12 years ago by le_top le_top, updated 10 years ago by le_top 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: 25 203 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 Louis Gac, updated 10 years ago by Louis Gac 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: 25 875 times
Version: 2.0
Category: Tips

Using your own forked version of extensions with composer

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

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 26 736 times
Version: all
Category: Tutorials

Role Management

Created 11 years ago by Dency G B Dency G B, updated 11 years ago by Dency G B 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: 27 249 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2