We use a set of constants for various bits of information in our sites so if we need to use a constant within a Fuelified page or block we then turn that constant into a variable using the global file (application/views/_variables/global.php) like so:
$vars['secure_base_url'] = SECURE_BASE_URL;
And then use it where we need to, like this example:
<a href="<?=url('register', $secure_base_url)?>" class="button" />Join Now</a>
But though we have used this successfully in other sites in our system that are similar I'm currently getting an "undefined variable" error. Any idea what could be causing this?
Comments
$this->fuel->pages->render('path/to/uri')
to have the global variables file loaded.