Passing variables to admin CMS blocks
  • 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!
  • typo*

    <?php echo fuel_block(array('view' => 'top_about_menu', 'vars' => array('current_menu' => 'who-we-are'))) ?>

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!