Wiki articles

Showing 1-20 of 164 items.

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

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

Convert JSON data to html table for display on page

Created a year ago by shiv.

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

0 0
1 follower
Viewed: 67 489 times
Version: all
Category: Tips
Tags: html, JSON

Create Bootstrap5 based Image carousel with thumbnails

Created 3 months ago by pravi, updated 3 months ago by pravi.

Use the following css styles for carousel to work as expected.

0 0
1 follower
Viewed: 16 435 times
Version: 2.0
Category: Tutorials

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 15 812 times
Version: 2.0
Category: Tips

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

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

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 19 441 times
Version: 2.0
Category: How-tos

Execute migration on server/linux using shell

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

It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.

0 0
3 followers
Viewed: 19 490 times
Version: 2.0
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 8 years ago by Chris Backhouse, updated 8 years ago by Chris Backhouse.

The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.

0 0
3 followers
Viewed: 16 390 times
Version: 2.0
Category: How-tos

Yii2: Query build for complexity SQL

Created 8 years ago by Scott_Huang, updated 8 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: 39 026 times
Version: 2.0
Category: Tips

Simple Jui Autocomplete in yii2

Created 8 years ago by ajith, updated 8 years ago by ajith.

To use jui auto complete widget first add

0 0
3 followers
Viewed: 50 532 times
Version: 2.0
Category: Tutorials

Automatic Parameter Binding to POST vars in Yii2

Created 10 years ago by aarondfrancis, updated 9 years ago by YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 25 662 times
Version: 2.0
Category: How-tos

MySQL migration environment

Created 8 years ago by Fabrizio Caldarelli, updated 8 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: 12 589 times
Version: 2.0
Category: How-tos

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 13 116 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 11 712 times
Version: 2.0
Category: How-tos
Tags:

Yii2cdn Component

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

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

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

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

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

A universal model attribute for its synthetic representation

Created 7 years ago by Alexandre Rodichevski, updated 7 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: 14 441 times
Version: 2.0
Category: Tips

REST API and null values in XML

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

Working with relational removals by yii2

Created 7 years ago by AndroideLP, updated 6 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 35 228 times
Version: 2.0
Category: Tutorials