PHP code example of zpetr / apigility-htmlnegotiation

1. Go to this page and download the library: Download zpetr/apigility-htmlnegotiation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zpetr / apigility-htmlnegotiation example snippets


	return array(
    	'modules' => array(
        	...,
            'zPetr\\HtmlNegotiation',
            ....
		)
	)     

	...
	'view_manager' => array(
		'template_map' => array(
			'zpetr/htmlnegotiation/layout'	=> __DIR__ . '/../view/layout.phtml',
		),
		'template_path_stack' => array(
			__DIR__ . '/../view',
		),
	),