上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: magento collection错误:尝试添加的对象无效打印collection发现_itemObjectClass类名不对。但是程序都统一是CustomerStore,不知道这里为什么变为Customerstore。为了避免这错误暂时把类名定为:Customerstore。所以今后开发插件还是要注意这点:类名的骆驼型,避免一个名称中有多个大写字母。 protected '_itemObjectClass' => string 'Mage_CustomerStore_Model_Customerstore' (length=38) protected 阅读全文
posted @ 2014-03-19 13:27 lifeinearth 阅读(196) 评论(0) 推荐(0) 编辑
摘要: phpword的功能有点简单,如果要开发复杂点的需要进行二次开发。http://phpword.codeplex.com/[关于乱码问题处理]中文乱码问题,这个一定是存在的,如果php环境已经是utf8了,要找到关键地方,转utf8的代码,去掉,否则就是转两次编码了,典型的是phpword\template.php文件,把这行注释掉:$replace = utf8_encode($replace);开发时可以参考:http://wenku.baidu.com/view/2c63938edd88d0d233d46aa6.html中文开发手册 阅读全文
posted @ 2014-03-15 19:30 lifeinearth 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 同学们,你们喜欢购物吗?如果你是个细心的人,一定会发现我们学过的store与shop这两个单词都可以解释为“商店”,你知道它们的区别吗,我们一起来比较一下吧!store一般是指规模比较大的仓储式商店或百货公司。例如:Most department stores have big sales before Christmas in the US.(在美国,圣诞节前夕,多数百货公司都有大优惠。)She buys a chair at the depart-ment store.(她在百货公司买了一把椅子。)而shop一般指小型商店或小商铺等。例如:There are many new houses 阅读全文
posted @ 2014-03-12 11:39 lifeinearth 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: Magento的表有三百多张,以实体、属性、值(EAV)的数据库结构难以掌握,加上缺少有关EAV的文档,以至许多人不知道这种EAV方式的好处以及它对magento来说的重要性,在这里作为一名magento开发者,让我们来了解下,它是如何工作的并且对我们有什么好处。什么是EAV呢?EAV是实体(Entity)、属性(Attribute)、值(Value)的意思,接下来来看看每一部分以便更好的理解它。实体(Entity)实体指的是magento的数据对象,如产品、分类目录、客户、订单等,每一个实体在数据库中都对应着一条实体记录。属性(Attribute)属性是指跟实体相关的一些性质数据,如产品实体 阅读全文
posted @ 2014-02-14 15:59 lifeinearth 阅读(2096) 评论(0) 推荐(0) 编辑
摘要: magento的表结构很复杂具体可以看看这个http://www.magereverse.com/首先要知道是EAV模式,这种结构要比普通数据结构更容易扩展,但是带来的就是查询速度慢,好在magento的缓存机制不错最重要的3张表eav_entity_type,eav_entity_attribute,eav_attributeeav_entity_type表用来定义实体的基本信息比如entity_type_id = 1是customer实体eav_entity_attribute表用来定义实体模型包含哪些属性(当然这里还涉及到set和group)select * from eav_entit 阅读全文
posted @ 2014-02-14 15:32 lifeinearth 阅读(713) 评论(0) 推荐(0) 编辑
摘要: chmod 777 -R media/ 阅读全文
posted @ 2014-01-17 17:54 lifeinearth 阅读(126) 评论(0) 推荐(0) 编辑
摘要: app/code/core/Mage/Core/Model/Session/Abstract/Varien.php // session cookie params $cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecu... 阅读全文
posted @ 2014-01-17 17:53 lifeinearth 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 报connection timed out; no servers could be reached错误修改 /etc/resolv.conf 阅读全文
posted @ 2014-01-17 17:49 lifeinearth 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 过滤字符串function removeChkStr(chkId){ return chkId.replace(new RegExp("chk_item"), ""); }select选择后控件值变更: 阅读全文
posted @ 2014-01-17 17:47 lifeinearth 阅读(169) 评论(0) 推荐(0) 编辑
摘要: left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行 阅读全文
posted @ 2014-01-12 21:30 lifeinearth 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页