Wiki articles

Showing 101-120 of 142 items.

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 2 years ago by emrald, updated 2 years ago by emrald.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 9 177 times
Version: 2.0
Category: Tutorials

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

Created 2 years ago by Amjad Khan, updated 2 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

2 0
6 followers
Viewed: 50 074 times
Version: 2.0
Category: Tutorials

REST API and null values in XML

Created 2 years ago by marko60, updated 2 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 12 614 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

Show raw SQL query

Created 2 years ago by darioo, updated 2 years ago by darioo.

Here's a quick tip to dump the SQL for query.

10 0
4 followers
Viewed: 85 781 times
Version: 2.0
Category: FAQs

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 6 years ago by Luis Lobo Borobia, updated 2 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 8 584 times
Version: all
Category: Tips

Working with relational removals by yii2

Created 2 years ago by AndroideLP, updated 2 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 19 667 times
Version: 2.0
Category: Tutorials

Building a REST API in Yii2.0

Created 4 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 125 171 times
Version: 2.0
Category: Tutorials

Write & use a custom Component in Yii2.0

Created 4 years ago by sirin k, updated 2 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)

12 0
11 followers
Viewed: 95 884 times
Version: 2.0
Category: How-tos

How to get SEO friendly URL using Model and new getUrl() function

Created a year ago by shiv, updated a year ago by shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 15 046 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 4 years ago by ThePr0f3550r, updated a year 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

3 1
11 followers
Viewed: 101 364 times
Version: 2.0
Category: How-tos

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 5 years ago by Kartik V, updated a year ago by 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).

2 2
47 followers
Viewed: 51 165 times
Version: 2.0
Category: Tips

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

Created 3 years ago by softark, updated a year ago by softark.

Assume we have many categories and many posts.

3 0
6 followers
Viewed: 28 847 times
Version: 2.0
Category: Tutorials

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 2 years ago by Wade Shuler, updated a year ago by CeBe.

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 20 775 times
Version: 2.0
Category: How-tos

How to use GridView with AJAX

Created 5 years ago by Antonio Ramirez, updated a year 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.

9 0
15 followers
Viewed: 69 943 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

Yii2 Report Grid

Created a year ago by Chris Backhouse, updated a year ago by Chris Backhouse.

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 21 131 times
Version: 2.0
Category: Tips

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 4 years ago by skworden, updated a year ago by Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

16 0
26 followers
Viewed: 182 104 times
Version: 2.0
Category: How-tos

How to login from different tables in Yii2

Created a year ago by AndroideLP, updated a year ago by samdark.

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: 20 382 times
Version: 2.0
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 8 years ago by qiang, updated a year 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: 49 886 times
Version: all
Category: Tips

How to learn Yii?!

Created 7 years ago by yJeroen, updated a year ago by CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 97 178 times
Version: all
Category: Tutorials

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 5 years ago by Kartik V, updated a year 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: 41 586 times
Version: 2.0
Category: How-tos