Magento 模块创建者安装说明:
1)登录到magento的管理面板
2)转到系统-> Magento Connect-> Magento Connect Mmanager
3)转到设置->首选状态:->将稳定版更改为测试版
4)转到扩展->安装新扩展->使用此密钥: -http: //connect20.magentocommerce.com/community/Netz98_ModuleCreator- >单击安装->单击准备安装
5)成功安装后,转到您喜欢的文件管理器转到路径:app/code/core/mage/captcha/model/observer.php
和改变
public function checkUserLoginBackend($observer)
{
$formId = 'backend_login';
$captchaModel = Mage::helper('captcha')->getCaptcha($formId);
$loginParams = Mage::app()->getRequest()->getPost('login');
$login = array_key_exists('username', $loginParams) ? $loginParams['username'] : null;
if ($captchaModel->isRequired($login)) {
if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) {
$captchaModel->logAttempt($login);
Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.'));
}
}
$captchaModel->logAttempt($login);
return $this;
}
到
public function checkUserLoginBackend($observer)
{
$formId = 'backend_login';
$captchaModel = Mage::helper('captcha')->getCaptcha($formId);
$login = Mage::app()->getRequest()->getPost('username');
if ($captchaModel->isRequired($login)) {
if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) {
$captchaModel->logAttempt($login);
Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.'));
}
}
$captchaModel->logAttempt($login);
return $this;
}
6) 如果您使用的是 linux/unix
转到终端->转到magento项目文件夹->输入chmod 777 -R /var/www/your-project-folder/
7)在浏览器中打开您的网址并在其后添加/moduleCreator
8) 完成。您现在应该可以创建模块了。
祝你好运。