Application Title System

The framework provides a flexible way to manage page titles with automatic application name prefixing:

  1. Configure title settings in .env:

USE_APP_NAME_IN_TITLE=true
APP_NAME="INEX SPA"
  1. Use standard HTML title tags in your pages:

<title>Welcome</title>

The framework will automatically transform titles to include the app name:

<title>INEX SPA - Welcome</title>

Advanced Usage

  • Disable for specific pages by setting USE_APP_NAME_IN_TITLE=false

  • Custom separators can be configured in .env

  • Supports dynamic titles from PHP variables

  • Maintains SEO-friendly title structure

  • Works with SPA page transitions

Example with dynamic title:

<?php $pageTitle = "User Profile: " . $username; ?>
<title><?php echo $pageTitle; ?></title>

Last updated