Wiki articles

Showing 81-100 of 153 items.

Manage Email Template content from database

Created 6 years ago by Ankit Modi, updated 6 years ago by Ankit Modi.

Hi Friends,

0 1
1 follower
Viewed: 12 804 times
Version: all
Category: Tutorials

How to organize Design "things" in Yii 2 (themes and layout)

Created 2 years ago by s.oli, updated 2 years ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

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

When to use Active Record

Created 2 years ago by samdark, updated 3 months ago by samdark.

When to use Active Record is a common question among developers, Yii and overall.

11 0
3 followers
Viewed: 46 523 times
Version: all
Category: FAQs

Update and Delete buttons on Breadcrumb

Created 2 years ago by Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

0 0
1 follower
Viewed: 46 051 times
Version: 2.0
Category: Tips

Integrating ZF2 into Yii - use case demonstrated

Created 7 years ago by Boaz, updated 6 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 11 021 times
Version: 2.0
Category: How-tos

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

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

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 36 979 times
Version: 2.0
Category: How-tos

Running applications with Docker

Created 5 years ago by schmunk, updated 5 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: 38 323 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

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

Single PHP entry point with Nginx

Created 5 years ago by MadAnd, updated 5 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: 11 806 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 5 years ago by Scott_Huang, updated 5 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: 17 704 times
Version: 2.0
Category: Tutorials

PHP built-in server integration

Created 5 years ago by Headshaker, updated 5 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)

0 0
2 followers
Viewed: 38 500 times
Version: 2.0
Category: How-tos

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: 12 666 times
Version: 2.0
Category: How-tos

Language Selector

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

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 11 284 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 10 064 times
Version: 2.0
Category: How-tos
Tags:

A Single Page with a List and a Detail

Created 4 years ago by softark, updated 4 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: 24 033 times
Version: 2.0
Category: How-tos

Yii2 Report Grid

Created 3 years ago by Chris Backhouse, updated 2 years 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: 25 198 times
Version: 2.0
Category: Tips

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

Created 3 years ago by shiv, updated 3 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: 19 929 times
Version: 2.0
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 9 years ago by qiang, updated 2 years 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: 52 557 times
Version: all
Category: Tips

Automatically get the SVN Revision Number of your Project

Created 6 years ago by jcagentzero, updated 6 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: 9 374 times
Version: all
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 6 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 15 400 times
Version: 2.0
Category: How-tos