Wiki articles

Showing 1-20 of 143 items.
Created a month ago by hehbhehb, updated a month ago by hehbhehb.

pjax gridview delete button issue

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.

0 0
1 follower
Viewed: 1 310 times
Version: 2.0
Category: How-tos
Created 2 months ago by Luis Armando, updated 2 months ago by Luis Armando.

Use non Gmail/Gsuite on Gcloud projects

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img src="https://static.techspot.com/fileshost/newspics3/2017/google-cloud-platform....

0 0
1 follower
Viewed: 2 187 times
Version: 2.0
Category: How-tos
Created 3 years ago by Deepak Pradhan, updated 3 years ago by Deepak Pradhan.

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 4 232 times
Version: 2.0
Category: Tips
Created 2 months ago by CeBe, updated a month ago by CeBe.

Configuring PhpStorm IDE for Yii 2

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

7 0
5 followers
Viewed: 5 520 times
Version: 2.0
Category: Tips
Created a year ago by Alexandre Rodichevski, updated a year ago by Alexandre Rodichevski.

A universal model attribute for its synthetic representation

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 5 698 times
Version: 2.0
Category: Tips
Created 2 months ago by AndroideLP, updated 2 months ago by samdark.

How to login from different tables in Yii2

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object appy one table to authentication ('identityClass' => 'app\painel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

3 0
3 followers
Viewed: 5 910 times
Version: 2.0
Category: How-tos
Created 3 years ago by schmunk, updated 3 years ago by schmunk.

`forceCopy` per Asset Bundle

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 6 203 times
Version: 2.0
Category: How-tos
Created 4 years ago by jcagentzero, updated 4 years ago by jcagentzero.

Automatically get the SVN Revision Number of your Project

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 6 227 times
Version: all
Category: Tutorials
Created 3 years ago by Asmaa, updated 3 years ago by Asmaa.

How to display images in CJuiAutoComplete without extenstions

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
1 follower
Viewed: 6 709 times
Version: all
Category: Tutorials
Created 3 years ago by yiqing95, updated 3 years ago by yiqing95.

embedded javascript block in your view with IDE checking or intellisense

this is my way for embed js code block in view file:

1 0
3 followers
Viewed: 6 727 times
Version: 2.0
Category: Tips
Created a year ago by emrald, updated a year ago by emrald.

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

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.

0 0
3 followers
Viewed: 6 837 times
Version: 2.0
Category: Tutorials
Created 3 years ago by darioo, updated 3 years ago by darioo.

Using PayPal IPN with Yii2

I'm using PayPal's script from

0 0
1 follower
Viewed: 7 357 times
Version: 2.0
Category: Tips
Created 2 years ago by Fabrizio Caldarelli, updated 2 years ago by Fabrizio Caldarelli.

MySQL migration environment

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 7 412 times
Version: 2.0
Category: How-tos
Created 5 years ago by Luis Lobo Borobia, updated a year ago by Luis Lobo Borobia.

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 7 486 times
Version: all
Category: Tips
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: 7 716 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Locking your Yii 2 project package versions with composer.lock

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 7 753 times
Version: 2.0
Category: Tips
Created 2 years ago by Scott_Huang, updated 2 years ago by Scott_Huang.

A simple widget - jump2link

namespace app\components;

0 0
1 follower
Viewed: 7 885 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 7 952 times
Version: 2.0
Category: How-tos
Tags:
Created 2 years ago by Programmer Thailand, updated 2 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

0 0
5 followers
Viewed: 7 977 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.

3 0
3 followers
Viewed: 8 096 times
Version: all
Category: How-tos