PHP code example of hashandsalt / hero
1. Go to this page and download the library: Download hashandsalt/hero 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/ */
hashandsalt / hero example snippets
return function ($page, $kirby, $site, $tag) {
$hero = $kirby->controller('hero', compact('page', 'site', 'kirby'));
return $hero;
};
<?= snippet('hero/hero')