I want to use {{block type="blog/blog" name="blog" alias="list_blog" template="aw_blog/bloghome.phtml"}} in phtml file, but I don't know how, because this code useable for cms page but I need output of this line in a phtml file.

How can I do it?

1 Answer 1


Try this?

<?php echo $this->getLayout()->createBlock('blog/blog')->setTemplate('aw_blog/bloghome.phtml')->toHtml(); ?>
  • I test it in local and every thing is ok but when I use it in file that is uploaded on server my home page messed up. How can I fix it?
    – Elham Gdz
    Aug 9, 2015 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.