PHPackages                             zkwbbr/view - 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. [Templating &amp; Views](/categories/templating)
4. /
5. zkwbbr/view

ActiveLibrary[Templating &amp; Views](/categories/templating)

zkwbbr/view
===========

Display template file inside a layout file using plain PHP

v1.2.1(3y ago)11461PHP &gt;=7.1

Since Apr 2Compare

[ Source](https://github.com/zkwbbr/view)[ Packagist](https://packagist.org/packages/zkwbbr/view)[ RSS](/packages/zkwbbr-view/feed)WikiDiscussions Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

zkwbbr/view
===========

[](#zkwbbrview)

Display template file inside a layout file using plain PHP

---

Install
-------

[](#install)

Install via composer as `zkwbbr/view`

Sample Usage
------------

[](#sample-usage)

Create a templates folder (e.g., `myTemplates/`)

Inside your templates folder, create a layout file (e.g., `myLayout.php`) and put the ff.

```

```

Inside your templates folder, create a view file (e.g., `myView.php`) and put the ff.

```

```

In your PHP code (e.g., controller), put the ff.

```
