hello I have a problem again with my rewrite, I tried to rewrite the product view block
app/code/local/Lesson/Test/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Lesson_Test>
<version>1.0.0</version>
</Lesson_Test>
</modules>
<global>
<blocks>
<catalog>
<rewrite>
<product_view>Lesson_Test_Block_Catalog_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
</config>
app/code/local/Lesson/Test/Block/Catalog/Product/View.php
<?php
Class Lesson_Test_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View
{
public function afficherLesInfos()
{
return 'les infos complementaires';
}
}
app/etc/modules/Lesson.xml
<?xml version="1.0"?>
<config>
<modules>
<Lesson_Test>
<active>true</active>
<codePool>local</codePool>
</Lesson_Test>
</modules>
</config>
I tried to access
http://127.0.0.1/magento/magento-tutorial/index.php/
http://127.0.0.1/magento/magento-tutorial/index.php/lesson
http://127.0.0.1/magento/magento-tutorial/index.php/lesson/product
http://127.0.0.1/magento/magento-tutorial/index.php/lesson/product/view
http://127.0.0.1/magento/magento-tutorial/index.php/product/view
http://127.0.0.1/magento/magento-tutorial/index.php/lesson/catalog/product/view
no one of that at work
Lesson_Test.xml
instead ofLesson.xml