Wiki articles

Showing 61-80 of 165 items.

FORM with GET method causes repeated stacking of URL Parameters

Created 11 years ago by Kartik V, updated 11 years ago by toph.

// 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(); `

7 2
41 followers
Viewed: 64 120 times
Version: all
Category: Tips

Events registration examples

Created 6 years ago by minitia, updated 6 years ago by minitia.

Register an event handler at Object-Level

2 0
2 followers
Viewed: 63 219 times
Version: 2.0
Category: How-tos
Tags: events, yii2

Handling tabular data loading and validation in Yii 2

Created 11 years ago by Kartik V, updated 9 years ago by Said Bakr.

The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.

3 2
51 followers
Viewed: 61 935 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 9 years ago by softark, updated 6 years 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.

11 0
6 followers
Viewed: 61 261 times
Version: 2.0
Category: Tutorials

Nested inline active fields inside Bootstrap horizontal forms

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

A Single Page with a List and a Detail

Created 8 years ago by softark, updated 8 years ago by 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: 58 951 times
Version: 2.0
Category: How-tos

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

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

Start using Yii2 in Raspberry Pi3 (RPI3) via Pantahub

Created 4 years ago by sirin k, updated 4 years ago by sirin k.

4 0
4 followers
Viewed: 57 957 times
Version: 2.0
Category: How-tos

PHP built-in server integration

Created 9 years ago by Headshaker, updated 9 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: 55 259 times
Version: 2.0
Category: How-tos

Configuring PhpStorm IDE for Yii 2

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

Update and Delete buttons on Breadcrumb

Created 6 years ago by 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: 54 856 times
Version: 2.0
Category: Tips

When to use Active Record

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

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

13 0
4 followers
Viewed: 54 103 times
Version: all
Category: FAQs

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 53 122 times
Version: 2.0
Category: Tutorials

Running applications with Docker

Created 10 years ago by schmunk, updated 10 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: 52 574 times
Version: 2.0
Category: Tutorials

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

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

Configuring different sessions for backend and frontend in Yii advanced app

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

Use kartik Growl with Yii2 flash messages

Created 10 years ago by skworden, updated 10 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: 50 596 times
Version: 2.0
Category: How-tos

Pjax GridView: refresh page after delete

Created 7 years ago by hehbhehb, updated 6 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: 50 442 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

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

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

4 0
8 followers
Viewed: 49 844 times
Version: 2.0
Category: Tips
Tags: form, model, yii2
0 0
5 followers
Viewed: 48 103 times
Version: 2.0
Category: How-tos