I created a simple module, now I try to load the block with:
echo $this->getLayout()->createBlock('creation_newproducts/newproducts')->setTemplate('newproducts/newproduct.phtml')->toHtml();
I can echo content from block function however template file is not loaded.
<?xml version="1.0"?>
<config>
<modules>
<Creation_Newproducts>
<version>1.0.0</version>
</Creation_Newproducts>
</modules>
<global>
<blocks>
<creation_newproducts>
<class>Creation_Newproducts_Block_Newproducts</class>
</creation_newproducts>
</blocks>
</global>
</config>
Template file:
app/design/frontend/default/mt_colinus/template/newproducts/newproducts.phtml
How can i echo the template file?
Is this even possible outside controller?