PHPackages                             johnsnook/yii2-stacked - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. johnsnook/yii2-stacked

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

johnsnook/yii2-stacked
======================

A tabbed initerface alternative using a jquery plugin I also wrote

v0.2(7y ago)04MITPHP

Since Jul 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/johnsnook/yii2-stacked)[ Packagist](https://packagist.org/packages/johnsnook/yii2-stacked)[ Docs](https://snooky.biz/)[ RSS](/packages/johnsnook-yii2-stacked/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Stacked: a tabbed alternative for Yii2
======================================

[](#stacked-a-tabbed-alternative-for-yii2)

[![Latest Stable Version](https://camo.githubusercontent.com/9e473bbe9ae7e4714e0fd74ab59b634380aca2eb471cbd468738f862846ad93f/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f762f737461626c65)](https://packagist.org/packages/johnsnook/yii2-stacked)[![img](https://camo.githubusercontent.com/564fbc77162f33b282c394de79ea701b0a12ea223d95ac11e66ba870ff0eba00/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f646f776e6c6f616473)](https://camo.githubusercontent.com/564fbc77162f33b282c394de79ea701b0a12ea223d95ac11e66ba870ff0eba00/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f646f776e6c6f616473) [![img](https://camo.githubusercontent.com/9f4bdd63d39e7ef12b525ca8305202436efc2edcb0405d5ffc94ac14159dfb19/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f762f756e737461626c65)](https://camo.githubusercontent.com/9f4bdd63d39e7ef12b525ca8305202436efc2edcb0405d5ffc94ac14159dfb19/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f762f756e737461626c65) [![img](https://camo.githubusercontent.com/d2ade9f65e04604eff3b3335c6f84351ffb38db5ba86a7da28f46a254f49b541/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f6c6963656e7365)](https://camo.githubusercontent.com/d2ade9f65e04604eff3b3335c6f84351ffb38db5ba86a7da28f46a254f49b541/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e736e6f6f6b2f796969322d737461636b65642f6c6963656e7365) [![img](https://camo.githubusercontent.com/dac3fc52d75e1a64f0ff0ac8ecdfe51192ff3d6c10e73af31660dd12ae7ba37c/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f636f6d706f7365726c6f636b)](https://camo.githubusercontent.com/dac3fc52d75e1a64f0ff0ac8ecdfe51192ff3d6c10e73af31660dd12ae7ba37c/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f636f6d706f7365726c6f636b)

I was testing some software the other day, and was having trouble remembering where I'd put a particular feature when I realized it had been under my nose the whole time, in a tab pane. So I started thinking about a new way to put content out of the way without putting it out of sight, and this is what I came up with.

Requirements
------------

[](#requirements)

- PHP &gt;= v5.4
- Yii2 v2.14
- jQuery v3.x
- Bootstrap 3

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist johnsnook/yii2-stacked "*"
```

or add

```
"johnsnook/yii2-stacked": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, you can start using it in views immediately:

```

....
```

The PanelWidget is completely optional since the jQuery plugin will assume all top level children of the selected container are to be displayed, but PanelWidget makes panels quickly. Then main thing is that the nesting is kept clean and everything is between the `StackedWidget::begin()` and `StackedWidget::end()`

```
...
