loading....

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年7月8日

摘要: opencart 模块开发详解由 xiekanxiyang » 2013年 7月 11日 10:17 pmopencart 将页面分成若干模块, 每个模块可以有多个实例(可能这样说不是很恰当) 每个实例可以指定它出现在哪个页面 这样更好的实现了代码的可重用性,可以达到更好的页面布局的可调节性. Op... 阅读全文
posted @ 2014-07-08 23:42 程序加载中 阅读(15596) 评论(0) 推荐(1) 编辑

摘要: Registry 中文意思是记录,登记,记录本的意思, 在opencart中他的用途就是 登记公共类.类的原型放在 system\engine文件夹下 代码很简单: data[$key]) ? $this->data[$key] : NULL); } public fu... 阅读全文
posted @ 2014-07-08 23:33 程序加载中 阅读(2487) 评论(1) 推荐(0) 编辑

摘要: 1. “Registry”设计模式在OpenCart中,Registry是整个系统的信息中枢。Registry是一个单例(Singleton),在index.php起始页面中,首先作为构造函数参数传递给所要用到的类创建类实例,并随之将这个类实例设置到这个“注册表”中,这个注册表就像是一个共享的数据总... 阅读全文
posted @ 2014-07-08 23:24 程序加载中 阅读(1304) 评论(1) 推荐(0) 编辑

摘要: CREATE TABLE IF NOT EXISTS `alipay_order` ( `id` int(11) unsigned NOT NULL auto_increment, `orderid` char(20) NOT NULL, `title` char(50) NOT NULL, ... 阅读全文
posted @ 2014-07-08 22:35 程序加载中 阅读(364) 评论(0) 推荐(0) 编辑

摘要: <?phpecho ""; //自动关闭当前页面header("location:test.php"); //跳转到其他页面php 阅读全文
posted @ 2014-07-08 20:42 程序加载中 阅读(188) 评论(0) 推荐(0) 编辑