Passing variables to admin CMS blocks

edited January 2018 in Installation
Hi Admin,

I have a block made in the admin panel - CMS named top_about_menu. I am using the below code to pass data to it.

<?php echo fuel_block('top_about_menu', array('current_menu' => 'who-we-are')) ?>
//and tried this as well
<?php echo fuel_block(array('view' => 'top_about_menu', 'var' => array('current_menu' => 'who-we-are'))) ?>
the block code looks like follow:

{$current_menu}
Am I missing something here!

Comments

  • edited January 2018
    typo*

    <?php echo fuel_block(array('view' => 'top_about_menu', 'vars' => array('current_menu' => 'who-we-are'))) ?>
Sign In or Register to comment.