title: Creating A Module Block For Magento's Welcome Message
body: <p>I found this very nice tutorial here: <a href="http://www.phparrow.com/magento/magento-create-a-simple-module/" rel="nofollow">http://www.phparrow.com/magento/magento-create-a-simple-module/</a> on creating a simple Magento Module. I was hoping I could figure out how to put Magento's default welcome message into a module. See, it appears Magento's default welcome message is part of the header because when you look at the layout with template paths turned on the welcome message doesn't have a template of it's own. </p>
  
  <p>The reason I want to add the welcome message to a module is because my page cache caches the header and along with it the welcome message. The welcome message has "Welcome..." then "Welcome...(Customer Name)" then "Welcome...(not Customer Name?)" etc. </p>
  
  <p>The page cache will cache what ever it happens to cache! I mean it might cache a customers name on one page and some other state on another page. </p>
  
  <p>The code in the header.phtml is:</p>
  
  <pre><code>&lt;p class="welcome-msg"&gt;&lt;?php echo $this-&gt;getWelcome() ?&gt; &lt;?php echo $this-&gt;getAdditionalHtml() ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I need to somehow add this to a "module block" so I can tell my page cache not to cache this block. Understand?</p>
  
  <p>The tutorial above explains how to create a module very well but it creates a "new page" and I need to some make a module for this welcome message.</p>
  
  <p>Thank you</p>