In magetnto you can add static blocks that you have created to pages using the layout xml files and adding code there. There is plenty of documentation on this method, but what if you want to call the static block from a view (view files generally end in .phtml). Well this is how I have been able to do it.

Just call

getLayout()->createBlock('cms/block')->setBlockId('contacts_text')->toHtml() ;
?>

or

getLayout()->createBlock('catalog/product_list_related')->setTemplate('catalog/product/list/related.phtml')->toHtml() ;
?>

Where setBlockId is the identifier you set up in the static block.