Wiki articles

Showing 81-100 of 164 items.

Optimize Scenarios for yii2

Created 7 years ago by AndroideLP, updated 4 years ago by 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: 41 727 times
Version: 2.0
Category: Tutorials

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 739 times
Version: 2.0
Category: Tips

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

Created 9 years ago by Kartik V, updated 9 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: 43 153 times
Version: 2.0
Category: Tips

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

Created 9 years ago by Kartik V, updated 9 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:

1 2
41 followers
Viewed: 43 292 times
Version: 2.0
Category: FAQs

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

Escape from Default's Yii2 Delete Confirm Box

Created 9 years ago by Antonio Ramirez, updated 8 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: 44 950 times
Version: 2.0
Category: How-tos

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

Created 8 years ago by AlaFalaki, updated 8 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: 45 944 times
Version: 2.0
Category: Tips

Pjax GridView: refresh page after delete

Created 5 years ago by hehbhehb, updated 5 years ago by 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: 45 945 times
Version: 2.0
Category: How-tos
0 0
5 followers
Viewed: 46 017 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 001 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

Configuring different sessions for backend and frontend in Yii advanced app

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

4 0
46 followers
Viewed: 48 337 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 384 times
Version: 2.0
Category: How-tos

Nested Set with Yii2

Created 5 years ago by sangprabo, updated 4 years ago by sangprabo.

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3 followers
Viewed: 49 429 times
Version: 2.0
Category: Tutorials

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

Created 9 years ago by Kartik V, updated 9 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: 49 485 times
Version: 2.0
Category: Tutorials

How to add Schema.org markup to Yii2 pages

Created 3 years ago by Gabriel A. López López, updated 3 years ago by Gabriel A. López López.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
3 followers
Viewed: 49 716 times
Version: 2.0
Category: How-tos

Configuring PhpStorm IDE for Yii 2

Created 5 years ago by CeBe, updated 5 years ago by 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: 49 781 times
Version: 2.0
Category: Tips

Running applications with Docker

Created 9 years ago by schmunk, updated 9 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: 50 161 times
Version: 2.0
Category: Tutorials

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 50 530 times
Version: 2.0
Category: Tutorials

PHP built-in server integration

Created 8 years ago by Headshaker, updated 8 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: 50 894 times
Version: 2.0
Category: How-tos

When to use Active Record

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

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

13 0
4 followers
Viewed: 52 477 times
Version: all
Category: FAQs