Wiki articles

Showing 101-120 of 148 items.

PHP built-in server integration

Created 5 years ago by Headshaker, updated 5 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)

0 0
2 followers
Viewed: 37 966 times
Version: 2.0
Category: How-tos

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 38 123 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 38 553 times
Version: 2.0
Category: How-tos

Managing your nested dropdown dependency with DepDrop widget

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

2 3
42 followers
Viewed: 39 363 times
Version: 2.0
Category: Tutorials

Configuring different sessions for backend and frontend in Yii advanced app

Created 6 years ago by Kartik V, updated 4 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: 39 588 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Scott_Huang, updated 5 years ago by Scott_Huang.

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

1 0
5 followers
Viewed: 40 021 times
Version: 2.0
Category: Tips

Use kartik Growl with Yii2 flash messages

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

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

6 0
10 followers
Viewed: 41 340 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 5 years ago by MetaCrawler, updated 2 years ago by Luis Armando.

Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.

8 0
6 followers
Viewed: 41 497 times
Version: 2.0
Category: Tutorials

Events registration examples

Created a year ago by minitia, updated a year ago by minitia.

Register an event handler at Object-Level

1 0
2 followers
Viewed: 45 398 times
Version: 2.0
Category: How-tos
Tags: events, yii2

Update and Delete buttons on Breadcrumb

Created a year 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.

0 0
1 follower
Viewed: 45 447 times
Version: 2.0
Category: Tips

When to use Active Record

Created 2 years ago by samdark, updated 2 months ago by samdark.

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

10 0
3 followers
Viewed: 46 218 times
Version: all
Category: FAQs

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 6 years ago by Kartik V, updated 2 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: 46 287 times
Version: 2.0
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 2 years ago by sirin k, updated a year ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 49 685 times
Version: 2.0
Category: Tutorials

FORM with GET method causes repeated stacking of URL Parameters

Created 6 years ago by Kartik V, updated 6 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(); `

4 2
40 followers
Viewed: 50 189 times
Version: all
Category: Tips

Displaying uploaded file from DB for update with FileInput widget

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

2 3
43 followers
Viewed: 50 197 times
Version: 2.0
Category: How-tos

Nested inline active fields inside Bootstrap horizontal forms

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

Handling tabular data loading and validation in Yii 2

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

2 2
51 followers
Viewed: 50 650 times
Version: 2.0
Category: Tutorials

Adding Yii Search to Your Browser Search Box

Created 9 years ago by qiang, updated 2 years ago by CeBe.

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: 52 318 times
Version: all
Category: Tips

Yii v2 snippet guide

Created 10 months ago by rackycz, updated 5 days ago by rackycz.

Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks

4 0
2 followers
Viewed: 52 644 times
Version: 2.0
Category: Tutorials

Relational data fields display and edit with the yii2-detail-view extension

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

4 0
41 followers
Viewed: 54 459 times
Version: 2.0
Category: Tutorials