0

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?

2

Try this?

<?php echo $this->getLayout()->createBlock('blog/blog')->setTemplate('aw_blog/bloghome.phtml')->toHtml(); ?>
1
  • 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 '15 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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