Wiki

Articles in category "tips"X
Displaying 11-20 of 154 result(s).

Things to Consider when application hosting on AppFog

Created 2 years ago by VINAY Kr. SHARMATips0 comments – viewed 3,472 times – ( +1 / -1 ) – version 1.1
I faced many issues when hosted our company website on AppFog.

Debuging variables in Yii2

Created 2 years ago by johonunuTips3 comments – viewed 13,823 times – ( +2 / -2 ) – version 2.0
This tutorial is explained following "basic" application structure.

Selecting best language based on Browser language and available languages.

Created 2 years ago by le_topTips0 comments – viewed 5,707 times – ( +2 / -1 ) – version 1.1
Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

YII2 Pagination Options

Created 2 years ago by VivekYiiTips0 comments – viewed 7,487 times – ( +1 / -1 ) – version 2.0
solution here If we are using default pagination option like
tags: pagination, View, vivs

Yii Rights Management Tips

Created 2 years ago by Rajith RTips0 comments – viewed 6,323 times – ( +6 / -1 ) – version 1.1
yii rights some tips..

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

Created 2 years ago by Deepak PradhanTips0 comments – viewed 3,361 times – ( -1 ) – version 2.0
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

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

Created 2 years ago by le_topTips0 comments – viewed 4,267 times – ( +1 / -1 ) – version 1.1
Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 2 years ago by Scott_HuangTips0 comments – viewed 15,209 times – ( +3 / -4 ) – version 2.0
First of all, install yii2 basic template according below link:

Add model validator in Controller

Created 2 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 16,803 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

Step by step for how to full export Yii2 grid to excel

Created 2 years ago by Scott_HuangTips3 comments – viewed 37,225 times – ( -1 ) – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview: