STRING.PHP

In this file, universal constants for Yugal and other libraries are supposed to be stored. Never delete a pre-defined variable to avoid any error.

<?php 
    define('DEV_MODE', true);
    define('SITE_TITLE', "--Yugal-Project--");
?>

Initially your string.php will look similar to this. It has some pre-defined constants listed below.

  • DEV_MODE Yugal uses this constant to know if project is running in production mode or is under development. If the project is under production mode Yugal will avoid displaying PHP errors and will not render any chunk js or chunk css file. You will know about chunk renderring in later sections.

  • SITE_TITLE This constant is used by Yugal to know project title. This constant helps libraries to get project title if needed. Yugal under the hood uses this constant to set page title if needed.

Last updated