Wiki articles

Showing 41-60 of 147 items.

Configuring different sessions for backend and frontend in Yii advanced app

Created 5 years ago by Kartik V, updated 4 years ago by Kartik V.

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

3 0
46 followers
Viewed: 38 429 times
Version: 2.0
Category: How-tos

Managing your nested dropdown dependency with DepDrop widget

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

If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

2 3
43 followers
Viewed: 37 717 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 37 426 times
Version: 2.0
Category: How-tos

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

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

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

1 0
5 followers
Viewed: 36 822 times
Version: 2.0
Category: Tips

Escape from Default's Yii2 Delete Confirm Box

Created 5 years ago by Antonio Ramirez, updated 4 years ago by Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 36 083 times
Version: 2.0
Category: How-tos

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 35 955 times
Version: 2.0
Category: Tutorials

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

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: 35 636 times
Version: 2.0
Category: How-tos

PHP built-in server integration

Created 4 years ago by Headshaker, updated 4 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: 35 414 times
Version: 2.0
Category: How-tos

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

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

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

0 2
40 followers
Viewed: 35 107 times
Version: 2.0
Category: FAQs

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 4 years ago by softark, updated 9 months ago by samdark.

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

6 0
6 followers
Viewed: 35 008 times
Version: 2.0
Category: Tutorials
10 0
15 followers
Viewed: 34 879 times
Version: all
Category: Others

How to change GridView delete confirmation message for specific controllers only?

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

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

3 0
4 followers
Viewed: 34 762 times
Version: 2.0
Category: Tips

Create Form With DynamicModel

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

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

3 0
8 followers
Viewed: 34 614 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

How to create/update a model with its related items using Listbox or CheckboxList

Created 4 years ago by softark, updated 2 years ago by softark.

Assume we have many categories and many posts.

4 0
7 followers
Viewed: 34 006 times
Version: 2.0
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 5 years ago by ezekielnoob, updated a year ago by samdark.

grid

3 0
10 followers
Viewed: 31 968 times
Version: 2.0
Category: Tutorials

Install specific Yii2 vendor extension & dependency without updating other packages.

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

The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

2 3
39 followers
Viewed: 31 314 times
Version: 2.0
Category: Tips

Events registration examples

Created a year ago by minitia, updated a year ago by minitia.

Register an event handler at Object-Level

1 0
2 followers
Viewed: 30 686 times
Version: 2.0
Category: How-tos
Tags: events, yii2

What to do when composer fails to update your vendor packages?

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.
  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 4
36 followers
Viewed: 30 677 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

Created 5 years ago by Misbahul D Munir, updated 5 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: 29 519 times
Version: 2.0
Category: Tutorials