I have added my custom module block in header in layout like below
pinsearch.xml
<default>
<reference name="header">
<block type="core/template" name="pinsearch" as="pinSearch" template="pinsearch/pinsearch.phtml" output="toHtml"/>
</reference>
<default>
pinsearch.phtml
<form action="<?php echo $this->getBaseUrl()."pinsearch/index/search"?>" method="get" id="search_pin_form">
<div class="input-box">
<label for="search"><?php echo $this->__('Search:') ?></label>
<input id="pinsearch" type="search" name="<?php echo "pin" ?>" value="" class="input-text required-entry" maxlength="" placeholder="<?php echo $this->__('Enter here...') ?>" />
<button type="submit" title="<?php echo $this->__('Search') ?>" class="button search-button"><span><span><?php echo $this->__('Search') ?></span></span></button>
</div>
In frontend, I got my custom search form but not in header. This form showing after wrapper div block
When i add this block in footer only, its showing on both footer and after wrapper div block too.
I'm totally confusing. Have any idea why its proceeding like this?