I am trying to render the magento contact form into a .phtml file, but I cannot find anything on Google to get the PHP code to do it.
I only know the code to use in magento’s CMS system which is:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
Any clues?
As long as the XML block is placed correctly, in a phtml file you should be able to bring it out with: