Wiki articles in category Tips

Showing 1-20 of 36 items.

GridView show sum of columns in footer.

Created 2 months ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

1 0
1 follower
Viewed: 4 769 times
Version: 2.0
Category: Tips

Convert JSON data to html table for display on page

Created 2 months ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 4 766 times
Version: all
Category: Tips
Tags: html, JSON

Aadhar Number Validator

Created 2 months ago by shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

1 1
1 follower
Viewed: 4 646 times
Version: 2.0
Category: Tips
Tags: validator

Interview Questions For YII2

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

Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview.

3 0
2 followers
Viewed: 6 590 times
Version: 2.0
Category: Tips
Tags: interview

Update and Delete buttons on Breadcrumb

Created 4 years ago by Daniel.

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

How to organize Design "things" in Yii 2 (themes and layout)

Created 4 years ago by s.oli, updated 4 years ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 24 961 times
Version: 2.0
Category: Tips

Configuring PhpStorm IDE for Yii 2

Created 4 years ago by CeBe, updated 4 years ago by CeBe.

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.

14 0
6 followers
Viewed: 45 259 times
Version: 2.0
Category: Tips

Yii2 Report Grid

Created 5 years ago by Chris Backhouse, updated 4 years ago by Chris Backhouse.

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 30 462 times
Version: 2.0
Category: Tips

REST API and null values in XML

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

A universal model attribute for its synthetic representation

Created 6 years ago by Alexandre Rodichevski, updated 6 years ago by Alexandre Rodichevski.

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

Boost composer-asset-plugin update speed

Created 6 years ago by schmunk, updated 6 years ago by samdark.

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 26 701 times
Version: 2.0
Category: Tips

How to change GridView delete confirmation message for specific controllers only?

Created 6 years ago by AlaFalaki, updated 6 years ago by AlaFalaki.

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

3 0
4 followers
Viewed: 43 870 times
Version: 2.0
Category: Tips

Yii2: Query build for complexity SQL

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

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

0 0
3 followers
Viewed: 37 833 times
Version: 2.0
Category: Tips

Load & Save With Relation

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

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 16 479 times
Version: 2.0
Category: Tips

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

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 14 562 times
Version: 2.0
Category: Tips

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

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

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

5 1
8 followers
Viewed: 38 205 times
Version: 2.0
Category: Tips

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 17 129 times
Version: 2.0
Category: Tips

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

Created 8 years ago by Deepak Pradhan, updated 8 years ago by Deepak Pradhan.

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