开发者

Magento custom module not using the correct include path

I am creating a custom Magento payment module. I have created the file: /var/www/app/etc/modules/CustomerParadigm_NoPay.xml which contains:

<?xml version="1.0"?>
<config>
    <modules>
        <CustomerParadigm_NoPay>
            <active>true</active>
            <codePool>local</codePool>
        </CustomerParadigm_NoPay>
    </modules>
</config>

For what everreason Magento is throwing this error:

Warning: include(Mage/Model/Nopay.php): failed to open stream: No such file or directory in /var/www/lib/Varien/Autoload.php on line 93

which 开发者_运维技巧is obviously not the right path, since I told Magento to look in the local folder. If anyone has any suggestions let me know.

I have also added this to my .htaccess file

php_value include_path ".:/var/www/app/code/local"


Don't use "_" in this config, because Magento will try to break "CustomerParadigm_NoPay" as directory CustomerParadigm and NoPay as class in this directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜