Wiki articles

Showing 1-20 of 149 items.
Created 4 years ago by Deepak Pradhan, updated 4 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 767 times
Version: 2.0
Category: Tips
Created 3 years ago by VivekYii, updated 3 years ago by VivekYii.

YII2 Pagination Options

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 11 356 times
Version: 2.0
Category: Tips
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: 7 012 times
Version: 2.0
Category: How-tos
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 966 times
Version: 2.0
Category: Tips
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 067 times
Version: 2.0
Category: Tips
Created 3 years ago by Louis Gac, updated 3 years ago by Louis Gac.

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

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: 12 505 times
Version: 2.0
Category: Tips
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: 10 715 times
Version: 2.0
Category: Tips
Created 3 years ago by Headshaker, updated 3 years ago by Headshaker.

PHP built-in server integration

I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

0 0
2 followers
Viewed: 28 019 times
Version: 2.0
Category: How-tos
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: 10 906 times
Version: 2.0
Category: Tips
Created 3 years ago by Fabrizio Caldarelli, updated 3 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: 8 212 times
Version: 2.0
Category: How-tos
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: 8 262 times
Version: 2.0
Category: Tutorials
Created 2 years ago by softark, updated 2 years ago by softark.

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

4 0
4 followers
Viewed: 25 644 times
Version: 2.0
Category: Tutorials
Created 2 years ago by junaidatari, updated 2 years ago by junaidatari.

Yii2cdn Component

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 12 102 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2
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: 10 441 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: 9 845 times
Version: all
Category: Others
Created 2 years ago by AndroideLP, updated 7 months ago by AndroideLP.

Optimize Scenarios for yii2

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

2 0
2 followers
Viewed: 18 699 times
Version: 2.0
Category: Tutorials
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: 11 417 times
Version: 2.0
Category: Tips
Tags: null, REST, XML
Created a year ago by shiv, updated a year ago by shiv.

How to get SEO friendly URL using Model and new getUrl() function

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 13 591 times
Version: 2.0
Category: How-tos
Created a year ago by sirin k, updated a month ago by sirin k.

Yii2 RESTful API with OAuth 2.0

https://cdn.pbrd.co/images/GMN5ROs.jpg

2 0
3 followers
Viewed: 29 978 times
Version: 2.0
Category: Tutorials
Created 8 months ago by Luis Armando, updated 4 months ago by Maurizio Domba Cerin.

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 width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
2 followers
Viewed: 4 730 times
Version: 2.0
Category: How-tos