Wiki articles

Showing 41-60 of 140 items.
Created 4 years ago by Misbahul D Munir, updated 4 years ago by Misbahul D Munir.

Simple Way to Upload and Save File

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 27 176 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 27 098 times
Version: 2.0
Category: Tips
Created 4 years ago by schmunk, updated 4 years ago by schmunk.

Running applications with Docker

When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

4 0
8 followers
Viewed: 31 211 times
Version: 2.0
Category: Tutorials
Created 3 years ago by phunsanit, updated 3 years ago by phunsanit.

YII2 : simple language Switcher Widget

  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 18 562 times
Version: 2.0
Category: Tutorials
2 0
2 followers
Viewed: 20 448 times
Version: 2.0
Category: How-tos
Created 3 years ago by MadAnd, updated 3 years ago by MadAnd.

Single PHP entry point with Nginx

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 9 225 times
Version: all
Category: How-tos
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 14 305 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Chris Backhouse, updated 3 years ago by Chris Backhouse.

Simple Google Maps object for use with ajax maps

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: 10 809 times
Version: 2.0
Category: How-tos
Created 3 years ago by oligalma, updated 2 years ago by oligalma.

How to install Yii 2 advanced on a shared hosting environment

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 22 032 times
Version: 2.0
Category: How-tos
Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

0 0
5 followers
Viewed: 9 186 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 8 892 times
Version: 2.0
Category: How-tos
Tags:
Created 2 years ago by softark, updated 2 years ago by Patrick Jones.

A Single Page with a List and a Detail

The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.

1 0
4 followers
Viewed: 13 789 times
Version: 2.0
Category: How-tos
Created 2 years ago by darioo, updated 2 years ago by darioo.

Show raw SQL query

Here's a quick tip to dump the SQL for query.

9 0
4 followers
Viewed: 72 560 times
Version: 2.0
Category: FAQs
Created a year ago by Wade Shuler, updated 10 months ago by CeBe.

How to make UrlManager createAbsoluteUrl work with sub-domains

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 19 400 times
Version: 2.0
Category: How-tos
Created a year ago by Chris Backhouse, updated 10 months ago by Chris Backhouse.

Yii2 Report Grid

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 19 781 times
Version: 2.0
Category: Tips
Created 10 months ago by CeBe, updated 9 months ago by CeBe.

Configuring PhpStorm IDE for Yii 2

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

10 0
6 followers
Viewed: 16 339 times
Version: 2.0
Category: Tips
Created 8 years ago by qiang, updated 10 months ago by CeBe.

Adding Yii Search to Your Browser Search Box

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 49 203 times
Version: all
Category: Tips
Created 4 years ago by jcagentzero, updated 4 years ago by jcagentzero.

Automatically get the SVN Revision Number of your Project

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 7 380 times
Version: all
Category: Tutorials
Created 4 years ago by Kartik V, updated 30 days ago by samdark.

How to read HTML5 Multiple File Input from controller?

0 2
40 followers
Viewed: 12 696 times
Version: 2.0
Category: How-tos
Created 5 years ago by le_top, updated 3 years ago by le_top.

Profiling using XDebug

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 14 212 times
Version: all
Category: How-tos