$state

Returns the current application states.

Table of Contents
  1. Description
  2. Example

Description

This variable is an instance of the State class with pre-defined data from the .\state.php file.

Example

<?php if ($state->is('home')): ?>
  <h1>
    <?= $state->title; ?>
  </h1>
<?php else: ?>
  <h1>
    <a href="<?= eat($url); ?>">
      <?= $state->title; ?>
    </a>
  </h1>
<?php endif; ?>

$state

Returns the current application states.

$url

Returns the current application URL.