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 10:04AM
    Does it work with just "header" instead of "_blocks/header"?
  • edited 10:04AM
    Ok, that way it loads. But I have problems with Javascript written in the header. What to do about it?
  • edited 10:04AM
    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.