Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.
< ! --__FUEL_MARKER__4-- > Appended HTML along with the page variable value using fuel_var function
I have introduced a variable namely page_active_top_menu in the home.php file inside views/_variables folder.
$vars['page_active_top_menu'] = 'home';
In the home.php view file, I have passed the variable in a block using the below code
<?php $this->load->view('_blocks/menu/top_menu.php', array('active_menu' => fuel_var('page_active_top_menu')))?>
When I am trying to access the variable in the top_menu.php file, when I var_dump($active_menu) I get
'< ! --__FUEL_MARKER__4-- >home'.
I should only be getting 'home' as the variable value. I have tried var_dump on fuel_var('page_active_top_menu') in home.php view page as well but still the same result.
Can you please suggest what is causing the issue, or I have missed out on something.