Wiki articles tagged with "yii2"

Showing 41-60 of 85 items.

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

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

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 091 times
Version: 2.0
Category: Tutorials

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 121 times
Version: 2.0
Category: Tutorials

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

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

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

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

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

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

Displaying uploaded file from DB for update with FileInput widget

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

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

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

Book Has Author - Many to Many relations using Kartik\Select2

Created 11 years ago by thiagoc7, updated 11 years ago by thiagoc7.

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 66 159 times
Version: 2.0
Category: How-tos

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 11 years ago by Kartik V, updated 7 years ago by alrazi.

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).

3 3
48 followers
Viewed: 67 907 times
Version: 2.0
Category: Tips

Api of Multiple File Uploading in Yii2

Created 4 years ago by fezzymalek, updated 3 years ago by fezzymalek.

After getting lot's of error and don't know how to perform multiple images api in yii2 finally I get it today

5 0
4 followers
Viewed: 68 316 times
Version: 2.0
Category: Tutorials

YII2: Create console commands inside a module or extension

Created 9 years ago by MetaCrawler, updated 7 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: 68 378 times
Version: 2.0
Category: Tutorials

Yii2 RESTful API with OAuth 2.0

Created 7 years ago by sirin k, updated 6 years ago by sirin k.

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

3 0
3 followers
Viewed: 72 093 times
Version: 2.0
Category: Tutorials

Filter & Sort by Summary Data in GridView Yii 2.0

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

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
48 followers
Viewed: 74 372 times
Version: 2.0
Category: Tutorials

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

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

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

1 0
5 followers
Viewed: 80 784 times
Version: 2.0
Category: Tips
4 0
3 followers
Viewed: 84 663 times
Version: 2.0
Category: Tutorials