Wiki articles

Showing 121-140 of 165 items.

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 19 543 times
Version: 2.0
Category: Tips

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

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

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

2 0
1 follower
Viewed: 22 289 times
Version: 2.0
Category: Tutorials

`forceCopy` per Asset Bundle

Created 10 years ago by schmunk, updated 10 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: 14 284 times
Version: 2.0
Category: How-tos

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 14 231 times
Version: 2.0
Category: Tips

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 17 325 times
Version: 2.0
Category: Tips

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

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

Load & Save With Relation

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

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 19 214 times
Version: 2.0
Category: Tips

Yii2: Query build for complexity SQL

Created 9 years ago by Scott_Huang, updated 9 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: 40 423 times
Version: 2.0
Category: Tips

MySQL migration environment

Created 9 years ago by Fabrizio Caldarelli, updated 9 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: 13 776 times
Version: 2.0
Category: How-tos

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 14 355 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 9 years ago by softark, updated 6 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.

11 0
6 followers
Viewed: 61 307 times
Version: 2.0
Category: Tutorials

Yii2cdn Component

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

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

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

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

Created 9 years ago by Wade Shuler, updated 9 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: 26 199 times
Version: 2.0
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 11 years ago by nineinchnick, updated 11 years ago by CeBe.

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
3 followers
Viewed: 21 046 times
Version: all
Category: Others

REST API and null values in XML

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

Yii2 RESTful API with OAuth 2.0

Created 7 years ago by sirin k, updated 6 years ago by sirin k.

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

3 0
3 followers
Viewed: 72 137 times
Version: 2.0
Category: Tutorials

Use non Gmail/Gsuite on Gcloud projects

Created 7 years ago by Luis Armando, updated 6 years ago by Maurizio Domba Cerin.

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
3 followers
Viewed: 18 157 times
Version: 2.0
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 11 years ago by edoardo849, updated 11 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 19 463 times
Version: 2.0
Category: Tips

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created 11 years ago by realtebo, updated 10 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 30 100 times
Version: 2.0
Category: Tutorials

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 21 104 times
Version: 2.0
Category: How-tos