Page tree
Skip to end of metadata
Go to start of metadata

Description


null h1(string $name, string $route)


Sets the H1 for a page

 

Notice

This function requires setting the section name beforehand by using the section() function.

Parameters


$name

H1 title

$route

URL route to the page.

Examples


<?php

route('/foo', function() {

   // Must set the section first
   section('Foo', '/foo');

   // Set the pages <h1></h1>
   h1('Bar', '/foo/bar');

   return view('index.html');
});
  • No labels