Using fuel_block to load Header

edited August 2012 in Modules
I would like to load header using fuel_block(). I tried to load it in the main using the following code
<?=fuel_block(array('view'=>'_blocks/header'))?>
But it is not coming. Can you please help?

Comments

  • edited 6:48PM
    Does it work with just "header" instead of "_blocks/header"?
  • edited 6:48PM
    Ok, that way it loads. But I have problems with Javascript written in the header. What to do about it?
  • edited 6:48PM
    I'm guessing it's trying to be parsed? If so you can wrap it in "literal" Dwoo templating tags like so:
    {literal}<script>....</script>{/literal}
    Or you can pass the "parse" value of FALSE like so:
    <?=fuel_block(array('view'=>'_blocks/header', 'parse' => FALSE))?>
Sign In or Register to comment.