Wiki articles

Showing 81-100 of 166 items.
10 0
15 followers
Viewed: 47 452 times
Version: all
Category: Others

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 47 562 times
Version: 2.0
Category: Tips

Optimize Scenarios for yii2

Created 9 years ago by AndroideLP AndroideLP, updated 6 years ago by AndroideLP AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 47 800 times
Version: 2.0
Category: Tutorials

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

Created 11 years ago by hrnair hrnair, updated 11 years ago by hrnair 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: 47 826 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by AlaFalaki AlaFalaki, updated 9 years ago by AlaFalaki 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: 48 665 times
Version: 2.0
Category: Tips

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 9 years ago by Cozumel 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: 48 889 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 49 134 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

Created 10 years ago by skworden skworden, updated 10 years ago by skworden skworden.

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

8 0
11 followers
Viewed: 51 804 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

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

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

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

Configuring different sessions for backend and frontend in Yii advanced app

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V 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.

4 0
46 followers
Viewed: 52 852 times
Version: 2.0
Category: How-tos

Pjax GridView: refresh page after delete

Created 7 years ago by hehbhehb hehbhehb, updated 7 years ago by CeBe CeBe.

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect.

6 0
4 followers
Viewed: 53 024 times
Version: 2.0
Category: How-tos

Running applications with Docker

Created 11 years ago by schmunk schmunk, updated 11 years ago by schmunk 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: 53 777 times
Version: 2.0
Category: Tutorials

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 53 984 times
Version: 2.0
Category: Tutorials

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 54 532 times
Version: 2.0
Category: Tutorials

When to use Active Record

Created 7 years ago by samdark samdark, updated 5 years ago by samdark samdark.

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

13 0
4 followers
Viewed: 55 355 times
Version: all
Category: FAQs

Update and Delete buttons on Breadcrumb

Created 7 years ago by Daniel 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: 55 720 times
Version: 2.0
Category: Tips

Configuring PhpStorm IDE for Yii 2

Created 7 years ago by CeBe CeBe, updated 7 years ago by CeBe CeBe.

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

14 0
6 followers
Viewed: 57 931 times
Version: 2.0
Category: Tips

Nested inline active fields inside Bootstrap horizontal forms

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 60 479 times
Version: 2.0
Category: How-tos

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

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

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 60 557 times
Version: 2.0
Category: How-tos

A Single Page with a List and a Detail

Created 9 years ago by softark softark, updated 9 years ago by Patrick Jones 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: 61 204 times
Version: 2.0
Category: How-tos