Wiki articles in category Tips

Showing 21-31 of 31 items.
Created 3 years ago by Misbahul D Munir, updated 3 years ago by Misbahul D Munir.

Create Form With DynamicModel

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

1 0
7 followers
Viewed: 25 494 times
Version: 2.0
Category: Tips
Tags: form, model, yii2
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

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

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

1 0
5 followers
Viewed: 23 196 times
Version: 2.0
Category: Tips
Created 4 years ago by CTala, updated 4 years ago by CTala.

My Own Components Folder in Yii2

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 12 610 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by toph.

FORM with GET method causes repeated stacking of URL Parameters

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

3 2
40 followers
Viewed: 36 945 times
Version: all
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Key web server settings after installing a fresh Yii 2 basic or advanced app

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

2 0
46 followers
Viewed: 18 491 times
Version: 2.0
Category: Tips
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: 7 647 times
Version: all
Category: Tips
Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

Yii 2 list of path aliases available with default basic and advanced app.

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

10 3
47 followers
Viewed: 118 929 times
Version: 2.0
Category: Tips
Created a year ago by Chris Backhouse, updated 4 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.

4 0
6 followers
Viewed: 16 882 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.

5 0
6 followers
Viewed: 15 445 times
Version: 2.0
Category: Tips
Created 4 months ago by CeBe, updated 3 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
5 followers
Viewed: 8 409 times
Version: 2.0
Category: Tips
Created 7 years ago by qiang, updated 4 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: 47 533 times
Version: all
Category: Tips