Wiki articles

Showing 81-100 of 165 items.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

3 0
46 followers
Viewed: 31 473 times
Version: 2.0
Category: Tips

Relational data fields display and edit with the yii2-detail-view extension

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

4 0
41 followers
Viewed: 65 933 times
Version: 2.0
Category: Tutorials

Book Has Author - Many to Many relations using Kartik\Select2

Created 11 years ago by thiagoc7, updated 11 years ago by thiagoc7.

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 66 158 times
Version: 2.0
Category: How-tos

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 26 789 times
Version: 2.0
Category: How-tos

Nested inline active fields inside Bootstrap horizontal forms

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

5 0
40 followers
Viewed: 59 170 times
Version: 2.0
Category: How-tos

Manage Email Template content from database

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

Hi Friends,

0 1
1 follower
Viewed: 25 647 times
Version: all
Category: Tutorials

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

Created 6 years ago by s.oli, updated 6 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: 30 480 times
Version: 2.0
Category: Tips

Update and Delete buttons on Breadcrumb

Created 6 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.

1 0
1 follower
Viewed: 54 851 times
Version: 2.0
Category: Tips

Integrating ZF2 into Yii - use case demonstrated

Created 12 years ago by Boaz, updated 11 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: 15 018 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by hrnair, updated 10 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: 46 289 times
Version: 2.0
Category: How-tos

How to email error logs to developer on Yii2 apps

Created 4 years ago by Gabriel A. López López.

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a \yii\log\FileTarget target configured.

2 0
4 followers
Viewed: 78 295 times
Version: 2.0
Category: How-tos
Tags: email, log

Running applications with Docker

Created 10 years ago by schmunk, updated 10 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: 52 571 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

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

Single PHP entry point with Nginx

Created 10 years ago by MadAnd, updated 10 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: 19 793 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 10 years ago by Scott_Huang, updated 10 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: 27 201 times
Version: 2.0
Category: Tutorials

PHP built-in server integration

Created 9 years ago by Headshaker, updated 9 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: 55 247 times
Version: 2.0
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 9 years ago by Chris Backhouse, updated 9 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: 17 821 times
Version: 2.0
Category: How-tos

Language Selector

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

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 17 802 times
Version: 2.0
Category: Tutorials
0 0
3 followers
Viewed: 12 384 times
Version: 2.0
Category: How-tos
Tags:

A Single Page with a List and a Detail

Created 8 years ago by softark, updated 8 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.

3 0
5 followers
Viewed: 58 935 times
Version: 2.0
Category: How-tos