Wiki articles in category Tips

Showing 21-32 of 32 items.
Created 3 years ago by moo.tensai, updated 3 years ago by moo.tensai.

Load & Save With Relation

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 10 724 times
Version: 2.0
Category: Tips
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Yii2: Query build for complexity SQL

As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

0 0
3 followers
Viewed: 10 914 times
Version: 2.0
Category: Tips
Created 2 years ago by AlaFalaki, updated 2 years ago by AlaFalaki.

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

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)

1 0
3 followers
Viewed: 28 186 times
Version: 2.0
Category: Tips
Created 2 years ago by schmunk, updated 2 years ago by samdark.

Boost composer-asset-plugin update speed

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 17 114 times
Version: 2.0
Category: Tips
Created 2 years ago by Alexandre Rodichevski, updated 2 years ago by Alexandre Rodichevski.

A universal model attribute for its synthetic representation

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 6 624 times
Version: 2.0
Category: Tips
Created 2 years ago by marko60, updated 2 years ago by marko60.

REST API and null values in XML

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 11 428 times
Version: 2.0
Category: Tips
Tags: null, REST, XML
Created 5 years ago by Luis Lobo Borobia, updated a year ago by Luis Lobo Borobia.

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 8 063 times
Version: all
Category: Tips
Created 4 years ago by Kartik V, updated 11 months ago by alrazi.

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

2 2
47 followers
Viewed: 48 442 times
Version: 2.0
Category: Tips
Created a year ago by Chris Backhouse, updated 8 months ago by Chris Backhouse.

Yii2 Report Grid

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

5 0
6 followers
Viewed: 18 729 times
Version: 2.0
Category: Tips
Created 8 years ago by qiang, updated 8 months ago by CeBe.

Adding Yii Search to Your Browser Search Box

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 48 625 times
Version: all
Category: Tips
Created 8 months ago by CeBe, updated 7 months ago by CeBe.

Configuring PhpStorm IDE for Yii 2

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.

10 0
6 followers
Viewed: 14 179 times
Version: 2.0
Category: Tips
Created 4 months ago by s.oli, updated 3 months ago by samdark.

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

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