Wiki articles

Showing 81-100 of 140 items.
Created 4 years ago by thiagoc7, updated 4 years ago by thiagoc7.

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

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

0 0
6 followers
Viewed: 19 790 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

How to use yii2-authclient to communicate with Twitter using Single Access Token

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 18 648 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Nested inline active fields inside Bootstrap horizontal forms

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: 46 216 times
Version: 2.0
Category: How-tos
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Manage Email Template content from database

Hi Friends,

0 1
2 followers
Viewed: 10 802 times
Version: all
Category: Tutorials
Created 6 months ago by samdark.

When to use Active Record

When to use Active Record is a common question among developers, Yii and overall.

9 0
3 followers
Viewed: 13 121 times
Version: all
Category: FAQs
Created 5 years ago by Boaz, updated 4 years ago by Boaz.

Integrating ZF2 into Yii - use case demonstrated

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
7 followers
Viewed: 9 807 times
Version: 2.0
Category: How-tos
Created 4 years ago by hrnair, updated 4 years ago by hrnair.

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

2 0
7 followers
Viewed: 31 719 times
Version: 2.0
Category: How-tos
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

5 0
5 followers
Viewed: 21 872 times
Version: 2.0
Category: How-tos
Created 4 years ago by johonunu, updated 4 years ago by johonunu.

Debuging variables in Yii2

This tutorial is explained following "basic" application structure.

2 1
6 followers
Viewed: 21 822 times
Version: 2.0
Category: Tips
Created 3 years ago by skworden, updated 3 years ago by skworden.

Use kartik Growl with Yii2 flash messages

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

6 0
10 followers
Viewed: 36 543 times
Version: 2.0
Category: How-tos
Created 3 years ago by Wade Shuler, updated 3 years ago by samdark.

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

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

3 1
15 followers
Viewed: 75 399 times
Version: 2.0
Category: How-tos
Created 5 years ago by Kostas Apazidis (KonApaz), updated a month ago by samdark.

Remove Byte Order Mark (BOM) from files recursively

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
8 followers
Viewed: 23 000 times
Version: all
Category: How-tos
Created 2 years ago by Wade Shuler, updated 2 years ago by Wade Shuler.

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let m...

5 0
4 followers
Viewed: 18 602 times
Version: 2.0
Category: How-tos
Created 2 years ago by Amjad Khan, updated 2 years ago by Amjad Khan.

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

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

2 0
6 followers
Viewed: 45 924 times
Version: 2.0
Category: Tutorials
10 0
15 followers
Viewed: 32 869 times
Version: all
Category: Others
Created 10 months ago by AndroideLP, updated 10 months ago by samdark.

How to login from different tables in Yii2

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

5 0
5 followers
Viewed: 17 348 times
Version: 2.0
Category: How-tos
Created 5 years ago by edoardo849, updated 4 years ago by skworden.

Upload files in Yii2 with MongoDb and GridFs

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
5 followers
Viewed: 22 327 times
Version: 2.0
Category: How-tos
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

How to send emails using SMTP

5 0
8 followers
Viewed: 85 033 times
Version: 2.0
Category: How-tos
Created 4 years ago by CTala, updated 4 years ago by CTala.

Yii2 default values for Index data Provider

Guys,

1 0
5 followers
Viewed: 23 801 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

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

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.

10 3
47 followers
Viewed: 128 800 times
Version: 2.0
Category: Tips