Wiki articles

Showing 21-40 of 142 items.
Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 9 297 times
Version: 2.0
Category: Tutorials
Created 3 years ago by MadAnd, updated 3 years ago by MadAnd.

Single PHP entry point with Nginx

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: 9 361 times
Version: all
Category: How-tos
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Customize your Growl/Alert msg easy and quickly

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 9 591 times
Version: 2.0
Category: Tips
Created 5 years ago by Boaz, updated 4 years ago by Boaz.

Integrating ZF2 into Yii - use case demonstrated

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
7 followers
Viewed: 9 878 times
Version: 2.0
Category: How-tos
Created 4 years ago by thiagoc7, updated 4 years ago by thiagoc7.

using 'whenClient' for complex client side validation

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

0 0
4 followers
Viewed: 10 281 times
Version: 2.0
Category: How-tos
Created 5 years ago by nineinchnick, updated 4 years ago by CeBe.

Tunneling using SSH in a limited enviroment

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
4 followers
Viewed: 10 306 times
Version: all
Category: Others
Created 5 months ago by samdark, updated a month ago by samdark.

Using multiple models in an identity

Let's assume we have two models: Customer and Supplier and we want both to log in. Yii is quite flexible when it comes to authentication and authorization so it's possible.

8 1
2 followers
Viewed: 10 318 times
Version: 2.0
Category: How-tos
Created 3 years ago by Chris Backhouse, updated 3 years ago by Chris Backhouse.

Simple Google Maps object for use with ajax maps

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: 10 891 times
Version: 2.0
Category: How-tos
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Manage Email Template content from database

Hi Friends,

0 1
2 followers
Viewed: 10 921 times
Version: all
Category: Tutorials
Created 3 years ago by darioo, updated 3 years ago by darioo.

Execute migration on server/linux using shell

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: 10 959 times
Version: 2.0
Category: How-tos
Created 2 years ago by Wade Shuler, updated 2 years ago by Wade Shuler.

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

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: 11 208 times
Version: 2.0
Category: How-tos
Created 3 years ago by moo.tensai, updated 3 years ago by moo.tensai.

Load & Save With Relation

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 11 268 times
Version: 2.0
Category: Tips
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Yii2: Query build for complexity SQL

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

0 0
3 followers
Viewed: 11 366 times
Version: 2.0
Category: Tips
Created 5 years ago by edoardo849, updated 4 years ago by CeBe.

Auto-update denormalized attributes with MongoDb and Yii2

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: 11 596 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

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

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

0 2
40 followers
Viewed: 11 810 times
Version: 2.0
Category: Tutorials
Created 10 months ago by hehbhehb, updated 7 months ago by CeBe.

Pjax GridView: refresh page after delete

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect.

5 0
3 followers
Viewed: 11 869 times
Version: 2.0
Category: How-tos
Created 4 years ago by VivekYii, updated 4 years ago by VivekYii.

YII2 Pagination Options

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 11 914 times
Version: 2.0
Category: Tips
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

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

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: 11 917 times
Version: all
Category: How-tos
Created 2 years ago by marko60, updated 2 years ago by marko60.

REST API and null values in XML

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: 12 088 times
Version: 2.0
Category: Tips
Tags: null, REST, XML
Created 6 months ago by Daniel.

Update and Delete buttons on Breadcrumb

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

0 0
1 follower
Viewed: 12 367 times
Version: 2.0
Category: Tips