liip / liip-magento-shared
共享的Magento扩展
v1.0.0
2013-11-20 09:58 UTC
Requires
This package is auto-updated.
Last update: 2024-09-12 19:53:05 UTC
README
一个包含我们在大多数项目中使用的重复方法的Magento模块。
功能
- 为安装程序(sql设置)扩展了属性操作方法集
- 下载文件的连接类
- 为改进导入值的链接,在属性选项中添加了一个
reference
字段 - 许多处理属性及其选项的方法
- 全页缓存容器类(仅EE):禁用/基于cookie/按客户/按会话
- 正确的URL umlaut替换(ä: ae)
- 将价格四舍五入到0.05(硬编码)
- 各种辅助工具
安装
将仓库添加到composer.json
{
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"require": {
"liip/liip-magento-shared": "1.*",
},
"extra":{
"magento-root-dir": "./"
}
}
通过composer安装包
$ ./composer.phar install
使用
该模块将它的Magento命名空间重命名为liip
。因此,您可以通过Mage::getModel('liip/connection_curl')
或Mage::helper('liip')
访问模型和辅助工具。
在您的模块中使用Setup类
在您的模块的config.xml
中,指定新的setup类
<global>
<resources>
<mymodule_setup>
<setup>
<module>Liip_Shared</module>
<class>Liip_Shared_Model_Resource_Setup</class>
</setup>
</mymodule_setup>
</resources>
</global>