Wiki articles tagged with "yii2"

Showing 61-80 of 85 items.

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

Created 9 years ago by Amjad Khan Amjad Khan, updated 9 years ago by Amjad Khan 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: 95 896 times
Version: 2.0
Category: Tutorials

Upload files in Yii2 with MongoDb and GridFs

Created 12 years ago by edoardo849 edoardo849, updated 6 years ago by pceuropa pceuropa.

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 41 769 times
Version: 2.0
Category: How-tos

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 11 years ago by softark softark, updated 7 years ago by softark 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: 112 132 times
Version: 2.0
Category: Tutorials

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r ThePr0f3550r, updated 8 years ago by alrazi 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: 167 651 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 11 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin 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: 129 108 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

6 0
5 followers
Viewed: 34 351 times
Version: 2.0
Category: How-tos

Managing your nested dropdown dependency with DepDrop widget

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

Simple Jui Autocomplete in yii2

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

To use jui auto complete widget first add

0 0
3 followers
Viewed: 54 697 times
Version: 2.0
Category: Tutorials

How to use GridView with AJAX

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 7 years ago by CeBe 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: 92 251 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 12 years ago by Charles R. Portwood II Charles R. Portwood II, updated 11 years ago by Vivek Vivek.

By popular demand, today I will be revisiting my previous Yii Framework 2 Getting Started Guide and updating it with what is currently available in the Yii Framework 2 Repository. Provide here is an super simple example CRUD application that will help you get started using the framework.

7 6
21 followers
Viewed: 317 320 times
Version: 2.0
Category: Tutorials

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 11 years ago by Kartik V Kartik V, updated 8 years ago by alrazi 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: 70 241 times
Version: 2.0
Category: Tips

Handling tabular data loading and validation in Yii 2

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Said Bakr 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: 64 518 times
Version: 2.0
Category: Tutorials

Installation guide: Yii-2 advanced template with RBAC system

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

Welcome, all of you !

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

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

Created 10 years ago by MadAnd MadAnd, updated 4 years ago by QuPsi 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: 155 628 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 9 years ago by Cozumel Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 49 122 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 10 years ago by MetaCrawler MetaCrawler, updated 7 years ago by Luis Armando 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: 71 453 times
Version: 2.0
Category: Tutorials

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

Created 10 years ago by Wade Shuler Wade Shuler, updated 10 years ago by samdark 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: 132 179 times
Version: 2.0
Category: How-tos

How to implement cron in Yii 2

Created 11 years ago by hemc hemc, updated 11 years ago by hemc 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: 106 784 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Filter & Sort by Summary Data in GridView Yii 2.0

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

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 11 years ago by ThePr0f3550r ThePr0f3550r, updated 11 years ago by YiiJeka 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: 138 134 times
Version: 2.0
Category: How-tos