Wiki articles tagged with "yii2"

Showing 61-80 of 85 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 123 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 370 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

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

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

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 704 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 688 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

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

How to redirect all emails to one inbox on Yii2 applications

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

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

6 0
4 followers
Viewed: 119 944 times
Version: 2.0
Category: How-tos

Installation guide: Yii-2 advanced template with RBAC system

Created 8 years ago by Sherin Jose, updated 8 years ago by Sherin Jose.

Welcome, all of you !

10 1
19 followers
Viewed: 124 874 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2

Write & use a custom Component in Yii2.0

Created 10 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

14 0
11 followers
Viewed: 126 583 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 10 years ago by Wade Shuler, updated 10 years ago by samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

9 1
18 followers
Viewed: 128 479 times
Version: 2.0
Category: How-tos

How to hide /frontend/web in url addresses on apache

Created 10 years ago by raminious, updated 10 years ago by jim..

There is an issue on Yii2 to redirecting / urls to /frontend/web.
In other words we need a way to hidden /frontend/web from addresses.
We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

11 0
22 followers
Viewed: 130 325 times
Version: 2.0
Category: How-tos

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 10 years ago by ThePr0f3550r, updated 10 years ago by YiiJeka.

Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"

9 0
22 followers
Viewed: 135 591 times
Version: 2.0
Category: How-tos

How to send emails using SMTP

Created 11 years ago by robregonm, updated 6 years ago by Wade Shuler.
6 0
11 followers
Viewed: 141 425 times
Version: 2.0
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 10 years ago by MadAnd, updated 3 years ago by QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 151 049 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r, updated 7 years ago by alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

4 1
12 followers
Viewed: 164 306 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

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

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

7 0
16 followers
Viewed: 169 751 times
Version: 2.0
Category: How-tos

Yii 2 list of path aliases available with default basic and advanced app.

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

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

15 4
46 followers
Viewed: 185 960 times
Version: 2.0
Category: Tips

Yii v2 snippet guide III

Created 4 years ago by rackycz, updated a year ago by rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

8 0
4 followers
Viewed: 212 955 times
Version: 2.0
Category: Tutorials