I created a site variable in the admin with the name of side_stats and an empty scope. I'm trying to pull that value through to a block (view/_blocks) with:
<?=fuel_var('side_stats', 'kaw kaw')?>
But I'm getting 'kaw kaw' instead. Am I missing something? Do I need something in views/_variables to make it work?
Value is stored in the DB okay..
http://www.getfuelcms.com/user_guide/modules/fuel/site_variablesIs pretty thin on info.
And a tiny catch:
({fuel_var('varname')}
= mismatched braces on that UG page.
Comments
Thanks for the UG catch... I'll update.
So in a 'home' view I use:
<?php $this->load->view('_blocks/side_bar')?>
To load a block. To use the site variable In the side_bar I have:
<?=fuel_var('side_stats', 'kaw kaw')?>
$config['fuel_mode']
in your fuel/application/MY_fuel.php set to?Thanks for checking and sorry to waste your time!
$_vars = $this->fuel_pagevars->view_variables(uri_path(), 'blog');
TO something like:
$_vars = $this->fuel_pagevars->retrieve(uri_path());
Let me know if that works.