Wiki articles

Showing 121-140 of 165 items.

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

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 333 times
Version: 2.0
Category: How-tos
4 0
3 followers
Viewed: 84 614 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 562 times
Version: 2.0
Category: Tutorials

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

How to use GridView with AJAX

Created 11 years ago by Antonio Ramirez, updated 7 years ago by CeBe.

With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.

10 0
15 followers
Viewed: 88 362 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to create/update a model with its related items using Listbox or CheckboxList

Created 9 years ago by softark, updated 7 years ago by softark.

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 89 613 times
Version: 2.0
Category: Tutorials

Managing your nested dropdown dependency with DepDrop widget

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

Nested Set with Yii2

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

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3 followers
Viewed: 90 958 times
Version: 2.0
Category: Tutorials

Convert JSON data to html table for display on page

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

I have a calls which help me display json directly in html table.

0 0
2 followers
Viewed: 91 571 times
Version: all
Category: Tips
Tags: html, JSON

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

Created 4 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: 91 740 times
Version: 2.0
Category: How-tos

How to add Schema.org markup to Yii2 pages

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

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
3 followers
Viewed: 91 875 times
Version: 2.0
Category: How-tos

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 8 years ago by Amjad Khan, updated 8 years ago by Amjad Khan.

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

4 1
7 followers
Viewed: 93 624 times
Version: 2.0
Category: Tutorials

Aadhar Number Validator

Created 2 years ago by shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

2 1
1 follower
Viewed: 94 748 times
Version: 2.0
Category: Tips
Tags: validator

GridView show sum of columns in footer.

Created 2 years ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

2 0
1 follower
Viewed: 98 472 times
Version: 2.0
Category: Tips

How to send email via Gmail SMTP in Yii2 framework

Created 3 years ago by Bartosz Wójcik, updated 3 years ago by Bartosz Wójcik.

One of my sites has been flooded with spam bots and as a result - Gmail gave my mailing domain a bad score and I couldn't send emails to @gmail addresses anymore, not from my email, not from my system, not from any of other domains and websites I host...

3 1
4 followers
Viewed: 100 080 times
Version: 2.0
Category: How-tos

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 10 years ago by Anas AbuDayah, updated 9 years ago by Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
14 followers
Viewed: 101 699 times
Version: 2.0
Category: Tutorials

How to implement cron in Yii 2

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

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 104 683 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

RBAC Super Simple with Admin and User

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

One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for devel...

9 1
15 followers
Viewed: 105 061 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 10 years ago by softark, updated 6 years ago by softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

13 0
14 followers
Viewed: 108 859 times
Version: 2.0
Category: Tutorials