Wiki articles

Showing 101-120 of 164 items.

Update and Delete buttons on Breadcrumb

Created 5 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.

0 0
1 follower
Viewed: 53 647 times
Version: 2.0
Category: Tips

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

Created 3 months ago by JQL, updated 3 months 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: 54 041 times
Version: 2.0
Category: How-tos

Interview Questions For YII2

Created a year ago by aayushmhu, updated 4 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: 54 158 times
Version: 2.0
Category: Tips
Tags: interview

A Single Page with a List and a Detail

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

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 10 years ago by Kartik V, updated 5 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: 55 402 times
Version: 2.0
Category: How-tos

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

Created 4 years ago by grigori, updated 3 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: 55 480 times
Version: 2.0
Category: How-tos

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

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

10 0
6 followers
Viewed: 55 715 times
Version: 2.0
Category: Tutorials

Nested inline active fields inside Bootstrap horizontal forms

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

How to add Open Graph and Twitter Card tags to Yii2 website.

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

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
3 followers
Viewed: 58 230 times
Version: 2.0
Category: How-tos

Handling tabular data loading and validation in Yii 2

Created 9 years ago by Kartik V, updated 8 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: 58 908 times
Version: 2.0
Category: Tutorials

How to email error logs to developer on Yii2 apps

Created 3 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: 59 935 times
Version: 2.0
Category: How-tos
Tags: email, log

Events registration examples

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

Register an event handler at Object-Level

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

How to login from different tables in Yii2

Created 5 years ago by AndroideLP, updated 3 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: 61 327 times
Version: 2.0
Category: How-tos

FORM with GET method causes repeated stacking of URL Parameters

Created 9 years ago by Kartik V, updated 9 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: 61 346 times
Version: all
Category: Tips

Displaying uploaded file from DB for update with FileInput widget

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

Api of Multiple File Uploading in Yii2

Created 3 years ago by fezzymalek, updated a year 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: 62 976 times
Version: 2.0
Category: Tutorials

Adding Yii Search to Your Browser Search Box

Created 13 years ago by qiang, updated 5 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: 63 299 times
Version: all
Category: Tips

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

Created 9 years ago by Kartik V, updated 9 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: 63 495 times
Version: 2.0
Category: Tutorials

YII2: Create console commands inside a module or extension

Created 8 years ago by MetaCrawler, updated 5 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: 63 677 times
Version: 2.0
Category: Tutorials

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

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

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

0 0
6 followers
Viewed: 64 908 times
Version: 2.0
Category: How-tos