Wiki articles

Showing 41-60 of 165 items.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

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

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 86 128 times
Version: 2.0
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 10 years ago by ezekielnoob, updated 6 years ago by samdark.

grid

4 0
10 followers
Viewed: 85 572 times
Version: 2.0
Category: Tutorials
4 0
3 followers
Viewed: 84 670 times
Version: 2.0
Category: Tutorials

How to add a DropDown Language Picker (i18n) to the Menu

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

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 83 394 times
Version: 2.0
Category: How-tos

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

How to email error logs to developer on Yii2 apps

Created 4 years ago by Gabriel A. López López.

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a \yii\log\FileTarget target configured.

2 0
4 followers
Viewed: 78 350 times
Version: 2.0
Category: How-tos
Tags: email, log

Step by step for how to full export Yii2 grid to excel

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

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

1 0
5 followers
Viewed: 77 653 times
Version: 2.0
Category: Tips

Change default date format in Oracle

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

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 77 064 times
Version: 2.0
Category: How-tos
Tags: database

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

How to login from different tables in Yii2

Created 7 years ago by AndroideLP, updated 5 years ago by lenovo.

The Problem: Yii2 utilizes by default UserIdentity configured in config/web.php for connection, this object apply one table to authentication ('identityClass' => 'app\panel\models\User'). How to authentication from diferent tables? Solution: Create instances in web.php to uses UserIdentify. eg:

5 0
6 followers
Viewed: 72 366 times
Version: 2.0
Category: How-tos

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

Interview Questions For YII2

Created 3 years ago by aayushmhu, updated 3 months ago by aayushmhu.

Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview.

2 0
2 followers
Viewed: 71 850 times
Version: 2.0
Category: Tips
Tags: interview

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

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

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

Adding Yii Search to Your Browser Search Box

Created 14 years ago by qiang, updated 7 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: 66 711 times
Version: all
Category: Tips

UUID instead of an auto-increment integer for ID with Active Record

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

I have an API. It's built with a RESTful extension over Active Record, and some endpoints provide PUT methods to upload files. By a REST design we create an entity with POST /video first, and then upload a video file with PUT /video/{id}/data.

5 0
4 followers
Viewed: 66 672 times
Version: 2.0
Category: How-tos

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

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 224 times
Version: 2.0
Category: How-tos