E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
magento
5.
Magento
资源配置(Setup Resource)
Magento
提供了一套系统,用版本化的资源迁移脚本来解决这个问题。上一章,我们为HelloworldBlogpost创建了一个模型。我们直接通过SQL语句“CREATETABLE”来创建数据表。
enlyhua
·
2015-05-07 14:00
4.
Magento
的模型和ORM基础
对于
Magento
来说,模型占据了一个更加重要的位置,因为它常常包含了一部分商业逻辑代码(可以说它对,也可以说它错)。这些代码在其他的MVC框架中往往出现在控制器或者帮助函数中。
enlyhua
·
2015-05-07 13:00
Magento
Magento
布局layout.xml文件详解
对于
Magento
系统,首先会将系统中相关的layout合并,合并一般是包括app\design\frontend\base\default\layout目录下的xml文件,以及指定的模板下面的对应
enlyhua
·
2015-05-06 22:00
Magento
3.
Magento
的布局(Layout),块(Block)和模板(Template)
根据之前讲的
Magento
MVC的架构,我们接下来应该讲模型(Model),但是我们跳过模型先来看布局和块。
enlyhua
·
2015-05-05 17:00
Magento
2.
Magento
请求分发与控制器(MVC)
Model-View-Controller(MVC),即模型-视图-控制器。现在有很多系统是基于MVC架构的,不同的系统MVC的实现也略有不同,但都体现了MVC的精髓,分离数据,业务逻辑和显示逻辑。2.1传统PHP的MVC框架:1)URL请求被一个PHP文件拦截,通常称为前端控制器(FrontController) 2)这个PHP文件分析这个URL,获得一个控制器(ActionController
enlyhua
·
2015-05-05 17:00
Magento
1.
Magento
的配置系统
Magento
的配置系统就像是
Magento
的心脏,支撑着
Magento
的运行。这套配置系统掌管着几乎所有“module/model/class/template/etc”。
enlyhua
·
2015-05-05 17:00
Magento
magento
入门指南
其实想学习
Magento
是不需要收费的,需要的是时间。去年我给同事写了一个简要的开发指南,这里就拿出来让大家见笑了。
pochuanpiao
·
2015-05-05 15:00
Linux网络流量实时监控工具:Nload安装和使用
[转载]:http://www.
magento
notes.com/linux-nload-install-config.htmlNload是个很好用的一个工具,功能也很强.只是相对单一,只能查看总的流量
pzw_0612
·
2015-05-02 18:00
linux
Magento
开发文档(五):
Magento
模型与ORM基础
相对于其他PHPMVC框架,
Magento
模型在系统中扮演了一个更为重要的角色,因为它包含了通常应用于控制器和助手方法中的业务逻辑。
enlyhua
·
2015-04-22 11:00
Magento
Magento
开发文档(三):
Magento
控制器
提到模型-视图-控制器这种MVC架构,要追溯到Smalltalk编程语言和XeroxParc。从那个时候开始,就有许多系统将自己描述为MVC架构。这些系统虽然在某些地方有细微差别,但都实现了数据层,逻辑层和前段表现代码的分离。大部分的PHPMVC框架都拥有以下基本特征所有的URL请求会被前端控制器解析前端控制器会检查请求的URL路径,并从中获取一个控制器和动作名(这个过程叫做路由)实例化从URL中
enlyhua
·
2015-04-20 22:00
Magento
magento
xml配置详解(2)
Magento
的config.xml配置参数详解Path:app/code/(codepool)/(NameSpace)/(ModuleName)/etc/config.xml当你在
Magento
中新增一个或更新一个
enlyhua
·
2015-04-19 21:00
xml
magento
xml配置详解(1)
在xml文件中增加配置项和值控制website/stores/storeviews的配置为不同的store设置不同的配置提示:
magento
在运行时会将每一个不同module的config.xml文件融合成
enlyhua
·
2015-04-19 21:00
xml
Magento
Magento
开发文档(二):
Magento
配置
Magento
的配置文件如同该系统的心脏一般。它负责从总体上配置所有被请求的模块,模型,类,模板文件等。
enlyhua
·
2015-04-19 19:00
开发
Magento
magento
Messages and Global Messages Blocks
Bothusethesameblock,aswecanseein page.xml: Whenyouaddamessage,youaddittothesession,ratherthantoeitherofthemessagesblocks,sothecodebelowcausestheMage_Customer_Model_Sessionobjecttohaveanerrorloggedtoit
鋒F
·
2015-04-17 13:00
global
Magento
blocks
messages
messages
Magento
开发文档(一):
Magento
入门
翻译名词对照:Modules->模块 Controller->控制器 Model->模型
Magento
是这个星球上最强大的购物车网店平台。当然,你应该已经对此毫无疑问了。
enlyhua
·
2015-04-16 23:00
Magento
magento
手机端访问
这里说的不是app,是浏览器的访问1.响应式布局也是个不错的选择2.使用手机模板
magento
后台可以设置不同终端访问使用不同的模板例如iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile
鋒F
·
2015-04-10 13:00
Magento
手机端访问
Magento
搜索结果页缓存策略解析
在给
Magento
网站规划缓存方案时,很少有人关注到搜索结果页面。有些人可能认为搜索结果页面千变万化(用户可能使用任何词汇来你的网站搜索),所以没法做缓存。
shuishui8310
·
2015-04-10 00:00
性能
搜索
缓存
Magento
magento
列表页 属性筛选 多选
解决方案插件http://www.
magento
commerce.com/
magento
-connect/layered-navigation-seo.htmlkey:http://connect20.
鋒F
·
2015-04-08 14:00
多选
Magento
列表页
属性筛选
magento
购物车页面 更新添加 custom option
//首先取得产品所有option,通过title检索出指定optionID $test = $_item->getProduct()->getProductOptionsCollection(); foreach($test as $t){ if($t->getTitle() == 'Special Requirement'){ $sr_optionid = $t->get
鋒F
·
2015-04-07 14:00
magento
list page or search page add review count
//byfeng publicfunctionaddReviewcount() { $RecentviewSelect=Mage::getSingleton('core/resource')->getConnection('core_read') ->select() ->from($this->getTable('review/review'),array('review_count'=>new
鋒F
·
2015-04-03 18:00
Magento
1.9.1.0重要改进之一--邮件异步队列发送
InthispostIwantedtotakeatourthroughthenewfunctionalityin
Magento
1.9.1withregardstosendingemailsfromyourstore.Theastuteamongyouwillhavenoticedthereweresomechangestoemailin
Magento
1.9.1fromthe
shuishui8310
·
2015-04-01 23:00
异步
Magento
14077410 SSL routines 错误 curl
error:14077410:SSLroutines:SSL23_GET_SERVER_HELLO:sslv3alerthandshakefailureerrorwhiletryingtoinstalla
Magento
Connectextension
江江小豆
·
2015-03-27 08:00
PHP
ssl
curl
14077410
magento
effects.js jquery.lazyload.js 冲突
当这两个js并存时,会造成加载图片闪烁的冲突问题原因:jquery.lazyload.js会触发叫"appear"的显示效果,利用jQuerytrigger()方法影响图片元素effects.js中给元素模型添加了appear()方法这样两个方法同时影响元素,改变透明度,就会造成闪烁解决:1.注释effects.js最后一句Element.addMethods(Effect.Methods);或者
鋒F
·
2015-03-20 10:00
Magento
多文件上传代码功能实现
前言在
Magento
中上传单个文件很简单,可以直接在继承的Mage_Adminhtml_Block_Widget_Form类中直接添加如下组件Field:对于图片:$fieldset->addField
xianqiang1
·
2015-03-18 19:00
PHP
Magento
linux系统下搭建php环境之-
Magento
外贸商城
1.安装搭建论坛必要的软件apache php mysql和php相关插件yum -y install httpd php mysql php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-co
蚂蚁也疯狂
·
2015-03-10 17:00
SNS
Magento
magento
手机移动设备模板切换的应用和支持
如何在
magento
上实现对手机或移动设备的支持呢,我这篇文章将详细介绍。
liwenhui
·
2015-03-03 20:00
mobile
Magento
odoo8.0集成
magento
odoo和
magento
的连接器部分https://github.com/aliomattux/mage2odoo模块作者KyleWaid安装后界面mage2odoo上配置
magento
服务器信息连接器本身依赖
liwenhui
·
2015-03-03 20:00
解决
magento
批量assign产品到分类时最多只能save成功1000件的问题
注:文章中问题已在
Magento
EE1.14/CE1.9得到验证。最近,我发现了一件非常奇怪的问题。当为一批产品(大于1000件)分配分类时,只有最多一千件产品能够保存成功,而其他的都被忽略了。
shangxiaoxue
·
2015-03-03 11:00
event
.htaccess
Magento
Magento
调试 打开错误报告 Enable Error Messages
转:http://www.sunzhenghua.com/
magento
-error-page-and-troubleshooting 在这一章节,我们来了解在
Magento
中报错信息(ErrorMessage
ruowu
·
2015-03-02 19:00
message
magento
Set limit on collection
$collection=Mage::getModel('...') ->getCollection() ->setPageSize(20) ->setCurPage(1);$collection=Mage::getModel('...')->getCollection(); $collection->getSelect()->limit(20);
鋒F
·
2015-02-27 14:00
magento
根据产品id获取产品评论及数量
$_reviews=Mage::getModel('review/review') ->getCollection() ->addStoreFilter(Mage::app()->getStore()->getId()) ->addEntityFilter('product',$product->getId()) ->addStatusFilter(Mage_Rev
鋒F
·
2015-02-26 10:00
如何创建
magento
模块之Hello World例子
如何创建
magento
模块之HelloWorld例子步骤:1.创建一个HelloWorld模块2.为这个模块配置路由3.为这个模块创建执行控制器 创建HelloWorld模块创建模块的结构目录:app/
yxhxj2006
·
2015-02-25 12:00
如何在
magento
中建立自定义页面
如何在
magento
中建立自定义页面老话重提,我们还是通过URL来进行分析http://////例如,我们现在想在paypal的模块中,增加一个查看帮助的页面。
yxhxj2006
·
2015-02-25 12:00
magento
搜索
magento
默认的搜索结果很多(后台设置like搜索方式),在输入词组的时候,会将两个词or,而不是and,结果就不太准备了,修改app/code/core/Mage/CatalogSearch/Model
鋒F
·
2015-02-15 14:00
Get last order or items of customer in
magento
$_customer = Mage::getSingleton('customer/session')->getCustomer(); $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('customer_id', $_custo
鋒F
·
2015-02-12 15:00
Magento
2,无法登录后台,循环登录问题解决方法
参考了Magneto1,发现结构和1不一样,找不到那个文件了于是自己搜索了下,找到了文件叫做:SessionManager.phpcd到
magento
2/lib/internal/
Magento
/Framework
maxsky
·
2015-02-12 08:00
Magento
安装时数据库不支持InnoDB存储引擎问题的解决
找到文件app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php的第59行:将public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs('SHOW VARIABLES'); return (!isse
Mogra
·
2015-02-05 23:00
Magento
jQuery插件:图片放大镜——jQuery Zoom
这是一款非常不错的给图片添加放大镜效果,可以应用在诸如zencart、
magento
电子商场之类的开源项目上。
xht555
·
2015-02-02 13:00
jquery
jquery插件
图片缩放
zoom
linux下为已经编译好的php环境添加新的扩展
我在安装
magento
的时候遇到了系统需要的扩展没有安装1、mcrypt2、pdo_mysql3、curl.....其实,基本上大部分扩展在php的源码安装包里面都是有的(在ext/里面的).添加扩展的基本步骤
杨太化
·
2015-01-30 12:00
PHP
linux
mysql
扩展
extension
Magento
你永远获得不到我的真实IP 模拟IP 隐藏IP 代理IP 伪装IP 高匿代理 普匿代理 透明代理IP
PHP世界不算漏洞的漏洞-你永远获得不到我的真实IP我粗略列举6种PHP业内、国际各大开源系统获取用户真实IP的案例(包括
Magento
ZencartZendFrameworkYii...国内的就不提了吧
let
·
2015-01-16 18:00
代理IP
隐藏IP
伪装IP
模拟IP
高匿代理
2014年12月31号
学习ebay,amazon,
magento
的电商平台搭配。希望这次的选择是不悔的,可以让我的人生更加丰富。同时祝福在
jiangduxi
·
2014-12-31 23:00
2014年12月31号
学习ebay,amazon,
magento
的电商平台搭配。希望这次的选择是不悔的
jiangduxi
·
2014-12-31 23:00
magento
让某个页面开启SSL访问
比如带有creditcard-pay的url页面,修改下面几处,具体方法作用可以看注释\app\code\core\Mage\Core\Model\Store.php /** *CheckiffrontendURLsshouldbesecure * *@returnboolean */ publicfunctionisFrontUrlSecure() { $pathInfo=Mage
鋒F
·
2014-12-29 17:00
Magento
Add Custom Field to Customer Address
Adding Field to Admin First we need to create the address attribute. There are two ways to do this one is through your module sql file or you can do it through directly through sql query. First we w
kirenenko04
·
2014-12-27 10:00
Field
Magento
export order item data
<?php class Bysoft_Export_Model_Order extends Mage_Core_Model_Abstract { protected function _construct(){ $this->_init("export/order"); $this->_write = Ma
kirenenko04
·
2014-12-26 14:00
Export
Magento
export csv conver chinese utf8 error
/** * Write item data to csv export file * * @param Varien_Object $item * @param Varien_Io_File $adapter */ function _exportCsvItem(Varien_Object $item, Varien_Io_File $adapte
kirenenko04
·
2014-12-26 11:00
chinese
magento
删除冗余产品图片
/* If your products have been deleted but not your media gallery images you can use the following SQL statement to remove these dormant records. Please make sure you backup your installation and
鋒F
·
2014-12-24 14:00
WordPress 数据库操作WPDB对象($wpdb)用法详解
/
Magento
/Shopify/Drupal/Moodle/Zimbra 使用wordpress的时候,如果想直接使用WP里封装的数据库操作的类(wp-db.php),将wp-blog-header.php
jinyeweiyang
·
2014-12-24 14:00
Magento
Adding Store View selection to your Module’s Adminhtml
While developing an extension recently I came across the need to add the ability to allow changes on a store view level. To start off with I wanted to make sure this functioned the same as the built
kirenenko04
·
2014-12-22 16:00
select
Magento
Paypal Russian Ruble and Philippine Peso
Open up the file app/code/core/Mage/Paypal/Model/Config.php Replace line 207 protected $_supportedCurrencyCodes = array(’AUD’, ‘CAD’, ‘CZK’, ‘DKK’, ‘EUR’, ‘HKD’, ‘HUF’, ‘ILS’, ‘JPY’, ‘MXN’, ‘NOK’, ‘NZ
鋒F
·
2014-12-20 11:00
上一页
21
22
23
24
25
26
27
28
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他