上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页

2017年4月11日

Magento 2 Factory Objects

摘要: In object oriented programming, a factory method is a method that’s used to instantiate an object. Factory methods exist to ensure system developers h 阅读全文

posted @ 2017-04-11 11:57 冯亮 阅读(571) 评论(0) 推荐(0)

2017年3月7日

UML类图与类的关系详解

摘要: 在画类图的时候,理清类和类之间的关系是重点。类的关系有泛化(Generalization)、实现(Realization)、依赖(Dependency)和关联(Association)。其中关联又分为一般关联关系和聚合关系(Aggregation),合成关系(Composition)。下面我们结合实 阅读全文

posted @ 2017-03-07 21:20 冯亮 阅读(258) 评论(0) 推荐(0)

2017年2月28日

Magento add product attribute and assign to all group

摘要: $attributes = array( 'product_type' => array( 'type' => 'int', 'input' => 'select', 'source_model' => 'mcatalog/source_eav_attribute_product_type', ... 阅读全文

posted @ 2017-02-28 10:34 冯亮 阅读(258) 评论(0) 推荐(0)

2017年2月23日

MyISAM 和InnoDB的区别

摘要: InnoDB和MyISAM是许多人在使用MySQL时最常用的两个表类型,这两个表类型各有优劣,视具体应用而定。基本的差别为:MyISAM类型不支持事务处理等高级处理,而InnoDB类型支持。MyISAM类型的表强调的是性能,其执行数度比InnoDB类型更快,但是不提供事务支持,而InnoDB提供事务 阅读全文

posted @ 2017-02-23 14:53 冯亮 阅读(118) 评论(0) 推荐(0)

2017年2月20日

Finding the Right EAV Attribute Table

摘要: $customer = Mage::getModel('catalog/product');$entity = $customer->getResource();$attribute = Mage::getSingleton('eav/config')->getCollectionAttribute 阅读全文

posted @ 2017-02-20 09:39 冯亮 阅读(132) 评论(0) 推荐(0)

2017年2月17日

Finding the Right EAV Attribute Table

摘要: $customer = Mage::getModel('catalog/product');$entity = $customer->getResource();$attribute = Mage::getSingleton('eav/config')->getCollectionAttribute 阅读全文

posted @ 2017-02-17 17:30 冯亮 阅读(98) 评论(0) 推荐(0)

2017年1月9日

add BOM to fix UTF-8 in Excel

摘要: fputs($fp, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) )); 阅读全文

posted @ 2017-01-09 22:12 冯亮 阅读(366) 评论(0) 推荐(0)

2016年12月17日

array_multisort 关联(string)键名保持不变,但数字键名会被重新索引。

摘要: $array = [ '2' => [ 'title' => 'Flower', 'order' => 3 ], '3' => [ 'title' => 'Rock', 'order' => 1 ], '4' => [ 'title' => 'Grass', '... 阅读全文

posted @ 2016-12-17 21:56 冯亮 阅读(1716) 评论(1) 推荐(1)

2016年12月1日

警惕mysql update的where中使用子查询的陷阱

该文被密码保护。 阅读全文

posted @ 2016-12-01 11:34 冯亮 阅读(32) 评论(0) 推荐(0)

2016年11月29日

magento添加系统sections配置时应注意的事项

摘要: (1)只有在新增sections是需要增加对应的acl配置,这个配置可以放在config.xml中或者放在adminhtml.xml中 阅读全文

posted @ 2016-11-29 17:41 冯亮 阅读(210) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页

导航