Php Magento没有';无法运行Sql安装脚本
Magento没有运行我的模块的安装程序脚本。但是安装程序脚本版本正在Php Magento没有';无法运行Sql安装脚本,php,magento,Php,Magento,Magento没有运行我的模块的安装程序脚本。但是安装程序脚本版本正在core\u resource表中添加。以下是我的文件 config.xml的一部分 <config> <modules> <Company_Brands> <version>1.0.0</version> </Company_Brands>
core\u resource
表中添加。以下是我的文件
config.xml的一部分
<config>
<modules>
<Company_Brands>
<version>1.0.0</version>
</Company_Brands>
</modules>
<global>
<models>
<brands>
<class>Company_Brands_Model</class>
<resourceModel>brands_mysql4</resourceModel>
</brands>
<brands_mysql4>
<class>Company_Brands_Model_Mysql4</class>
</brands_mysql4>
</models>
<resources>
<brands_setup>
<setup>
<module>Company_Brands</module>
<class>Company_Brands_Model_Mysql4_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</brands_setup>
<brands_read>
<connection>
<use>core_read</use>
</connection>
</brands_read>
<brands_write>
<connection>
<use>core_write</use>
</connection>
</brands_write>
</resources>
</global>
</config>
app/code/local/Company/Brands/Model/Mysql4/Setup.php
class Company_Brands_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
{
}
谢谢大家的建议
,在'select'
$data = array(
'label' => 'Brands',
'type' => 'select'
'input' => 'text',
应该是
$data = array(
'label' => 'Brands',
'type' => 'select',
'input' => 'text',
是否已打开开发人员模式?您是否收到任何其他错误?可能重复和其他许多错误为什么需要空白设置模型?@Tim He没有。如果不更改安装模型,可以直接使用Mage\u Eav\u model\u Entity\u安装程序。@blakcaps setup.php文件的代码是什么?你能告诉我吗?
$data = array(
'label' => 'Brands',
'type' => 'select',
'input' => 'text',