Custom constants

Whenever I want to use a constant variable, I declare it in config/constants.php like this:

define('CUSTOM_VAR', 'Custom var string');

And in the view I call it like this:

<?php echo CUSTOM_VAR; ?>

 

Post A Comment

Anti-Spam Quiz: