Wiki articles

Showing 41-60 of 145 items.

Change default date format in Oracle

Created 27 days ago by lenovo, updated 24 days ago by samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 1 478 times
Version: 2.0
Category: How-tos
Tags: database

Yii v2 snippet guide

Created 25 days ago by rackycz, updated 11 hours ago by rackycz.

Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks

2 0
1 follower
Viewed: 5 324 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

Created 4 years ago by Misbahul D Munir, updated 4 years ago by Misbahul D Munir.

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: 28 564 times
Version: 2.0
Category: Tutorials

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

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

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

1 0
5 followers
Viewed: 31 706 times
Version: 2.0
Category: Tips

Running applications with Docker

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

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: 33 681 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

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

Single PHP entry point with Nginx

Created 4 years ago by MadAnd, updated 4 years ago by MadAnd.

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: 10 202 times
Version: all
Category: How-tos

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

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

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: 15 537 times
Version: 2.0
Category: Tutorials

Simple Google Maps object for use with ajax maps

Created 4 years ago by Chris Backhouse, updated 4 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: 11 566 times
Version: 2.0
Category: How-tos

Language Selector

Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 10 036 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 9 382 times
Version: 2.0
Category: How-tos
Tags:

A Single Page with a List and a Detail

Created 3 years ago by softark, updated 3 years ago by Patrick Jones.

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.

2 0
3 followers
Viewed: 18 650 times
Version: 2.0
Category: How-tos

Show raw SQL query

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

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

12 0
4 followers
Viewed: 100 040 times
Version: 2.0
Category: FAQs

Yii2 Report Grid

Created 2 years ago by Chris Backhouse, updated a year ago by Chris Backhouse.

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: 22 336 times
Version: 2.0
Category: Tips

How to get SEO friendly URL using Model and new getUrl() function

Created 2 years ago by shiv, updated 2 years ago by shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 16 412 times
Version: 2.0
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 8 years ago by qiang, updated a year ago by CeBe.

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: 50 595 times
Version: all
Category: Tips

Automatically get the SVN Revision Number of your Project

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

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: 8 280 times
Version: all
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated 8 months ago by samdark.
0 2
40 followers
Viewed: 13 770 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 6 years ago by le_top, updated 4 years ago by le_top.

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: 15 206 times
Version: all
Category: How-tos

MongoDB's RBAC support class extending BaseManager

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

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 9 602 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2