Модуль Magento работает локально, но не на сервере

Я написал для Magento 1.9.x a пользовательский модуль. Локально работает отлично, но не загружается на сервер... похоже, модуль не загружен.

Я хочу переопределить AccountController и Helper/Data от клиента.

Кто-нибудь может найти ошибку в файлах? Спасибо!

Я уже очистил кеш в magento и /var/cache, но без эффекта

Это мои файлы:

/app/etc/modules/Org_RestLogin.xml

<?xml version="1.0"?> 
<config>
    <modules>
         <Org_RestLogin>
              <active>true</active> 
              <codePool>local</codePool> 
              <depends>
                  <Mage_Customer /> <!-- Make sure, this is loaded first -->
              </depends>
         </Org_RestLogin>
    </modules>
 </config>

/app/code/local/org/RestLogin/etc/config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Org_RestLogin>
            <version>1.1.1</version>
        </Org_RestLogin>
    </modules>

    <frontend>
        <routers>
            <customer>
                <args>
                    <modules>
                        <org_restlogin before="Mage_Customer">Org_RestLogin</org_restlogin>
                    </modules>
                </args>
            </customer>
        </routers>
    </frontend>

    <global>
       <helpers>
          <customer>
              <rewrite>
                  <data>Org_RestLogin_Customer_Helper_Data</data>
             </rewrite>
          </customer>
       </helpers>
    </global>
</config>

/app/code/local/org/RestLogin/controllers/AccountController.php

<?php
require_once 'Mage/Customer/controllers/AccountController.php';

class Org_RestLogin_AccountController extends Mage_Customer_AccountController {
    //my custom methods
}

/app/code/local/org/RestLogin/Customer/Helper/Data.php

<?php
class Org_RestLogin_Customer_Helper_Data extends Mage_Customer_Helper_Data
{
    /**
     * Check whether customers registration is allowed
     *
     * @return bool
     */
    public function isRegistrationAllowed() {
        return false;
    }
}

1 ответ

Решение

Я нашел решение. Это была опечатка в папке... "Орг" должен быть "Орг"

Другие вопросы по тегам