PHP code example of drdim / yii2-pug

1. Go to this page and download the library: Download drdim/yii2-pug 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/ */

    

drdim / yii2-pug example snippets




return [
	// ...
	'components' => [
		// ...
		'view' => [
		    // ...
            'renderers' => [
            	'pug' => 'drdim\\yii\\pug\\ViewRenderer',
            ],
		]
	]
];