Where do you store global parameters / variables in specific5?

On a website specific5, where is the best place to store the globals that you would like to access the generic site across templates and controllers, etc.?

eg. Specific external url, Facebook id, version number, etc.

+3


source to share


1 answer


If you want to do it in code (as opposed to CMS), you can put it in application/config/app.php

:

<?php
return [
    'FacebookAppId' => '1234',
];

      



And then in controllers / templates you can get it via:

<?= Config::get('app.FacebookAppId') ?>

      

+3


source







All Articles