I'm calling my custom module block in cms page using
{{block type="customreviews/reviews" name="customreviews_reviews" template="Customreviews/reviews.phtml"}}
My module config file is as follows:
<config>
<modules>
<Suave_Customreviews>
<version>0.0.1</version>
</Suave_Customreviews>
</modules>
<global>
<models>
<customreviews>
<class>Suave_Customreviews_Model</class>
</customreviews>
</models>
<blocks>
<customreviews>
<class>Suave_Customreviews_Block</class>
</customreviews>
</blocks>
<herlps>
<customreviews>
<class>Suave_Customreviews_Helper</class>
</customreviews>
</herlps>
</global>
<frontend>
<routers>
<customreview>
<use>standard</use>
<args>
<module>Suave_Customreviews</module>
<frontName>customreviews</frontName>
</args>
</customreview>
</routers>
<layout>
<updates>
<customreviews>
<file>Customreview.xml</file>
</customreviews>
</updates>
</layout>
</frontend>
block php file which I have created in my module named Reviews.php is
class Suave_Customreviews_Model_Reviews extends Mage_Core_Block_Template
{
public function firstTenCategoryReviews()
{
$data = Mage::getSingleton('customreviews/reviews')->firstTenCategoryReviews();
return $data;
}
}
My magento version is 1.9.2.4 I have allowed customreviews/reviews in magento admin blocks permission but still its not working.