Wiki articles tagged with "yii2"

Showing 21-40 of 85 items.

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 15 831 times
Version: 2.0
Category: Tips

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

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

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

21 0
28 followers
Viewed: 245 711 times
Version: 2.0
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 9 years ago by MadAnd, updated 2 years ago by QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 143 584 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 48 423 times
Version: 2.0
Category: How-tos

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 41 780 times
Version: 2.0
Category: Tips

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

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

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

8 0
6 followers
Viewed: 33 966 times
Version: 2.0
Category: How-tos

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 9 years ago by softark, updated 5 years ago by softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

13 0
14 followers
Viewed: 104 306 times
Version: 2.0
Category: Tutorials

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

5 0
5 followers
Viewed: 30 817 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

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

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

6 0
15 followers
Viewed: 163 343 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by hrnair, updated 9 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: 43 910 times
Version: 2.0
Category: How-tos

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

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

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

1 0
5 followers
Viewed: 70 228 times
Version: 2.0
Category: Tips

Simple Way to Upload and Save File

Created 9 years ago by Misbahul D Munir, updated 9 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: 38 721 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 46 035 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

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

In yii2 we can create form without create FormModel. Here we go

4 0
8 followers
Viewed: 47 053 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 9 years ago by Anas AbuDayah, updated 8 years ago by Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
14 followers
Viewed: 98 513 times
Version: 2.0
Category: Tutorials

How to hide /frontend/web in url addresses on apache

Created 9 years ago by raminious, updated 9 years ago by jim..

There is an issue on Yii2 to redirecting / urls to /frontend/web.
In other words we need a way to hidden /frontend/web from addresses.
We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

10 0
21 followers
Viewed: 125 353 times
Version: 2.0
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 9 years ago by edoardo849, updated 9 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: 13 437 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

How to implement form events

Created 9 years ago by Antonio Ramirez, updated 8 years ago by deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 37 832 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Write & use a custom Component in Yii2.0

Created 9 years ago by sirin k, updated 6 years ago by Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

14 0
11 followers
Viewed: 122 050 times
Version: 2.0
Category: How-tos