Wiki articles

Showing 141-160 of 822 items.

How to add a DropDown Language Picker (i18n) to the Menu

Created 4 months ago by JQL, updated 3 months ago by JQL.

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 54 515 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 18 251 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

Created 9 years ago by schmunk, updated 9 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: 12 816 times
Version: 2.0
Category: How-tos

MailGun Api Wrapper to send emails

Created 9 years ago by VINAY Kr. SHARMA, updated 4 years ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 12 641 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

How to preload dropdowns in CForm

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

So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

1 0
2 followers
Viewed: 11 848 times
Version: Unknown (update)
Category: Tips

Things to Consider when application hosting on AppFog

Created 9 years ago by VINAY Kr. SHARMA, updated 9 years ago by VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 7 916 times
Version: 1.1
Category: Tips

Active Record snapshotting (Model data base history)

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

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 16 481 times
Version: 1.1
Category: Tutorials

Relation scope to test existence of related records ("EXISTS")

Created 9 years ago by le_top, updated 8 years ago by le_top.

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 13 749 times
Version: 1.1
Category: How-tos

YII2 : simple language Switcher Widget

Created 8 years ago by phunsanit, updated 8 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 30 778 times
Version: 2.0
Category: Tutorials

Tarpit for bad bots

Created 12 years ago by mithereal, updated 12 years ago by mithereal.

I recently built a tarpit for bad bots.

1 0
9 followers
Viewed: 10 006 times
Version: 1.1
Category: How-tos
Tags: bots, tarpit
1 0
6 followers
Viewed: 64 352 times
Version: 1.1
Category: Tips

Load data from internal/external source to fill form fields

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

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5 followers
Viewed: 34 382 times
Version: 2.0
Category: How-tos

Load & Save With Relation

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

Use this extension : yii2-relation-trait

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

PHP built-in server integration

Created 8 years ago by Headshaker, updated 8 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: 50 941 times
Version: 2.0
Category: How-tos

Multi Data Provider

Created 10 years ago by Sharon Lavie, updated 8 years ago by Sharon Lavie.

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 18 270 times
Version: 1.1
Category: Tips

thumbsgen and Kohana Image Library together (extends an extension)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

1 0
1 follower
Viewed: 10 231 times
Version: Unknown (update)
Category: How-tos

Rendering Views and Updating them with Ajax

Created 10 years ago by Manish Gupta, updated 10 years ago by Manish Gupta.

I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

1 0
7 followers
Viewed: 27 886 times
Version: Unknown (update)
Category: Tips

How to install pdo_oci

Created 13 years ago by gallego123, updated 12 years ago by gallego123.

From: http://lacot.org/ and me.

1 0
3 followers
Viewed: 36 361 times
Version: 1.1
Category: How-tos

Set a menu - reusable code

Created 10 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

1 0
3 followers
Viewed: 11 392 times
Version: Unknown (update)
Category: Tips

Tunneling using SSH in a limited enviroment

Created 10 years ago by nineinchnick, updated 9 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: 18 700 times
Version: all
Category: Others