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"

One thought on “Magento custom module not using the correct include path”

  1. Don’t use “_” in this config, because Magento will try to break “CustomerParadigm_NoPay” as directory CustomerParadigm and NoPay as class in this directory.

Leave a Reply

Your email address will not be published. Required fields are marked *