PHPackages                             emlynwest/setui - 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. [Admin Panels](/categories/admin)
4. /
5. emlynwest/setui

ActiveFuel-module[Admin Panels](/categories/admin)

emlynwest/setui
===============

UI module for FuelPHP nested sets

0.1.0(10y ago)314MITPHP

Since Sep 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/emlynwest/setui)[ Packagist](https://packagist.org/packages/emlynwest/setui)[ RSS](/packages/emlynwest-setui/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

SetUI
=====

[](#setui)

[![Latest Version](https://camo.githubusercontent.com/f1448734472bedd08c53fa123b7bf2d62900f061a66bed164a120d131f0673e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374657665776573742f73657475692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stevewest/setui)

Module to provide basic user interfaces for FuelPHP's nested sets model.

Install instructions
====================

[](#install-instructions)

Just run `composer require emlynwest/setui`.

Or

Add the following to your `composer.json`:

```
{
    "require": {
        "stevewest/setui": "dev-master"
    },
}
```

Then just run a `composer update`!

After that all you will need to do is enable the module in your FuelPHP application's config file.

Custom module location
----------------------

[](#custom-module-location)

If your application uses a non-standard module location then you can add the below to your `composer.json` to ensure the module is installed in the correct place. (Make sure you keep the `{$name}`.)

```
{
    "extra": {
        "installer-paths": {
            "my/custom/path/{$name}": ["stevewest/setui"]
        }
    }
}
```

Usage
=====

[](#usage)

Menu rendering
--------------

[](#menu-rendering)

Using the `SetUI\Menu` class you can render a nested set model into a list. The constructor takes an optional config array that can be used to control the behaviour of how the set is rendered. Below is the default config for each item and an explanation of what they can be used for.

```
