Wiki articles

Showing 1-20 of 157 items.

How to add Schema.org markup to Yii2 pages

Created a year ago by Gabriel A. López López, updated a year ago by Gabriel A. López López.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
2 followers
Viewed: 9 996 times
Version: 2.0
Category: How-tos

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

Created 6 years ago by Deepak Pradhan, updated 6 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: 7 120 times
Version: 2.0
Category: Tips

How to email error logs to developer on Yii2 apps

Created a year ago by Gabriel A. López López.

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a \yii\log\FileTarget target configured.

1 0
2 followers
Viewed: 13 893 times
Version: 2.0
Category: How-tos
Tags: email, log

Api of Multiple File Uploading in Yii2

Created a year ago by fezzymalek, updated a year ago by fezzymalek.

After getting lot's of error and don't know how to perform multiple images api in yii2 finally I get it today

1 0
3 followers
Viewed: 14 039 times
Version: 2.0
Category: Tutorials

How to redirect all emails to one inbox on Yii2 applications

Created a year ago by Gabriel A. López López.

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

5 0
3 followers
Viewed: 14 866 times
Version: 2.0
Category: How-tos

Yii v2 snippet guide III

Created 9 months ago by rackycz, updated a month ago by rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

5 0
2 followers
Viewed: 20 695 times
Version: 2.0
Category: Tutorials

How to send email via Gmail SMTP in Yii2 framework

Created 2 months ago by Bartosz Wójcik, updated 2 months ago by Bartosz Wójcik.

One of my sites has been flooded with spam bots and as a result - Gmail gave my mailing domain a bad score and I couldn't send emails to @gmail addresses anymore, not from my email, not from my system, not from any of other domains and websites I host...

0 1
2 followers
Viewed: 3 726 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 15 825 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

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

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: 10 249 times
Version: 2.0
Category: How-tos

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 10 993 times
Version: 2.0
Category: Tips

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 13 084 times
Version: 2.0
Category: Tips

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

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

Load & Save With Relation

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

Use this extension : yii2-relation-trait

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

PHP built-in server integration

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

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)

1 0
3 followers
Viewed: 44 866 times
Version: 2.0
Category: How-tos

Yii2: Query build for complexity SQL

Created 6 years ago by Scott_Huang, updated 6 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: 36 518 times
Version: 2.0
Category: Tips

MySQL migration environment

Created 5 years ago by Fabrizio Caldarelli, updated 5 years ago by Fabrizio Caldarelli.

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: 10 860 times
Version: 2.0
Category: How-tos

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 11 183 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 5 years ago by softark, updated 2 years ago by samdark.

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.

8 0
6 followers
Viewed: 44 002 times
Version: 2.0
Category: Tutorials

Yii2cdn Component

Created 5 years ago by junaidatari, updated 5 years ago by junaidatari.

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

0 0
2 followers
Viewed: 15 108 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

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

Created 5 years ago by Wade Shuler, updated 5 years ago by Wade Shuler.

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: 17 837 times
Version: 2.0
Category: How-tos