Skip to content

fabiocarneiro/zend-expressive-zendviewrenderer

 
 

Repository files navigation

zend-view PhpRenderer Integration for Expressive

Build Status

zend-view PhpRenderer integration for Expressive.

Installation

Install this library using composer:

$ composer require zendframework/zend-expressive-zendviewrenderer

We recommend using a dependency injection container, and typehint against container-interop. We can recommend the following implementations:

View Helpers

To use view helpers, the ZendViewRendererFactory:

  • requires a config service; with
  • a view_helpers sub-key; which
  • follows standard zend-servicemanager configuration.

To use the UrlHelper provided in this package, ensure that you register its factory in that configuration:

use Zend\Expressive\ZendView\UrlHelperFactory;

return [
    'view_helpers' => [
        'factories' => [
            'url' => UrlHelperFactory::class,
        ],
    ],
];

Documentation

See the zend-expressive documentation tree, or browse online at http://zend-expressive.rtfd.org.

About

zend-view PhpRenderer integration for Expressive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.0%
  • HTML 1.0%