PHPackages                             petrofcikmatus/zf-layout-change - 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. [Framework](/categories/framework)
4. /
5. petrofcikmatus/zf-layout-change

AbandonedLibrary[Framework](/categories/framework)

petrofcikmatus/zf-layout-change
===============================

Zend Framework module for layout change based on used controller namespace.

1.0.0(8y ago)114MITPHPPHP ^5.6 || ^7.0

Since Jul 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/petrofcikmatus/zf-layout-change)[ Packagist](https://packagist.org/packages/petrofcikmatus/zf-layout-change)[ Docs](https://github.com/petrofcikmatus/zf-layout-change)[ RSS](/packages/petrofcikmatus-zf-layout-change/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ZF Layout Change Module
=======================

[](#zf-layout-change-module)

This is a Zend Framework 3 module, that can simply set different layouts for different modules.

If you have multiple modules in your application (e.g. Application and Admin), and you want different layout for some module (e.g. Admin), this package will provide easiest way to do that change.

How to use this package
-----------------------

[](#how-to-use-this-package)

### 1. Install this module with composer

[](#1-install-this-module-with-composer)

Simplest way to install this package is to use following composer command to require dependency:

```
composer require petrofcikmatus/zf-layout-change
```

Alternatively you can add following to your *composer.json* file manualy:

```
{
  "require": {
    "petrofcikmatus/zf-layout-change": "dev-master"
  }
}
```

and execute composer command to update your dependencies (and also download this new one):

```
composer update
```

### 2. Add this module to your modules

[](#2-add-this-module-to-your-modules)

When you add this package with composer, it should automatically ask in which file you want add new module.

If this did not happen, you have to add `'ZFLayoutChange'` value to the array with your modules. It should be in file *config/application.config.php* or *config/modules.config.php*, and look like this:

```
