- 博客(15)
- 资源 (11)
- 收藏
- 关注
原创 Decoupling models from the database: Data Access Object pattern in PHP
Nowadays it’s a quite common approach to have models that essentially just represent database tables, and may support saving the model instance right to the database. While the ActiveRecord pattern and things like Doctrine are useful, you may sometimes wan
2010-09-24 15:39:00 740 1
原创 Using a Conventional Modular Directory Structure粗略翻译
<br />使用传统的模块目录结构<br />The Conventional Modular directory structure allows you to separate different MVC applications into self-contained units, and re-use them with different front controllers. To illustrate such a directory structure:<br />传统的模块目录结构允许您的M
2010-09-24 15:31:00 623
原创 Zend_Db_Profiler Log FireBug
<br />http://framework.zend.com/manual/en/zend.db.profiler.html#zend.db.profiler.profilers.firebug<br />http://framework.zend.com/manual/en/zend.log.writers.html<br /> <br />手册两则。。。<br /> <br /> <br /> <br /><?phpclass Bootstrap extends Zend_Application_
2010-09-24 14:05:00 945 1
转载 Zend Framework and Firebug – Log and Debug your Projects
<br /><br />When developing an application there are some important factors that you have to pay close attention to avoid problems in the future. I think one of the most important is logging information on how your application is working and when it fails.
2010-09-24 13:43:00 1157
原创 ZendFramework 自定义Helper类的注意事项。
///文档说明开始编写自定义的Helper类编写自定义的Helper类很容易,只要遵循以下几个原则即可: 类名必须是 Zend_View_Helper_*,*是helper的名称。例如,你在写一个名为“specialPurpose”的类,类名将至少是"SpecialPurpose",另外你还应该给类名加上前缀,建议将“View_Helper”作为前缀的一部份:“My_V
2010-09-21 10:24:00 1511
原创 pear1.9下安装phpunit3.4
It had a strange problem running the above pecl command, with an error saying:Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 143 bytes) in /usr/share/php/PEAR/PackageFile/v2.php on line 1772Others have encountered this probl
2010-09-19 10:37:00 1324
原创 pear升级到1.9 Allowed memory size of 8388608 bytes exhausted
<br />用wmap5的时候,自带了pear1.6,但是版本太低运行phpunit3.4<br /> <br />修改文件<br />pearcmd.php<br />添加<br />@ini_set('memory_limit', '16M');<br /> <br />你可以修改php.ini 。我的人品太差,修改了也不行。。。<br /> <br />pear upgrade pear<br /> <br /> <br /> <br /> <br />pear -V升級 PEAR: ->1.3.6-
2010-09-19 10:36:00 1017
原创 ArrayList和Vector的区别,HashMap和Hashtable的区别以及线程安全的理解【转】
就ArrayList与Vector主要从二方面来说. <br /><br />一.同步性:Vector是线程安全的,也就是说是同步的,而ArrayList是线程序不安全的,不是同步的 <br /><br />二.数据增长:当需要增长时,Vector默认增长为原来一培,而ArrayList却是原来的一半 <br /><br /><br /><br />就HashMap与HashTable主要从三方面来说。 <br /><br />一.历史原因:Hashtable是基于陈旧的Di
2010-09-09 17:50:00 643
原创 关于n97mini j2me开发的一点常识。
<br />去掉屏幕上显示的控制面板,用Nokia-MIDlet-On-Screen-Keypad: no<br />http://discussion.forum.nokia.com/forum/showthread.php?197358-Fullscreen-mode<br /> <br />横竖屏切换时<br /><br />竖屏:Nokia-MIDlet-App-Orientation:portrait<br /> <br />横屏:Nokia-MIDlet-App-Orientation:l
2010-09-09 17:33:00 815
原创 MTJ
Mobile Tools for Java(MTJ)“这是 MTJ Project 第一次作为 Eclipse 的一部分发行,”项目主管 Christian Kurzke 说:“在去年,我们将两个面向移动开发人员的 Eclipse 项目(EclipseME 和 MTJ)合并为一个联合开发:即 ‘新的’ Eclipse MTJ。”“在 Galileo 中,我们还创建了一个 Pre-Integrated Eclipse 下载包(即 Pulsar Package),目标直指 Mobile Application
2010-09-03 10:48:00 5014 2
原创 n97 sdk 模拟器无法打开的解决方案。
装完了出现如下现象,启动模拟器,一闪而过。。。晕难道,就这样和N97擦肩而过。。。试试这个方法吧:http://www.google.com.hk/search?q=n97+sdk+%E6%A8%A1%E6%8B%9F%E5%99%A8%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80&hl=zh-CN&newwindow=1&safe=strict&tbs=clir:1,clirtl:en,clirt:en+n97+sdk+emulator+can+not+open&sa=X&ei=
2010-09-03 10:37:00 1080
原创 买了N97,还“赠送了”一套sdk,自然是装上,开发自己的应用。
<br />n97开发环境的搭建:<br /> <br />下载如下所需软件:jdk-6u21-windows-i586.exesun_java_me_sdk-3_0-win.exeeclipse-SDK-3.4.2-win32.zipeclipseme.feature_1.7.9_site.zipstrawberry-perl-5.12.1.0.msiActivePerl-5.12.1.1201-MSWin32-x86-292674.msiNokia_N97_SDK_v1_0_en.zip<br />啥也
2010-09-03 10:33:00 785
原创 jquery fquery iframe 动态获取有条件的数据,显示到iframe中
<!------------------------------start---------------------------------------><mce:script language="JavaScript" type="text/javascript" src="myjslib/jquery/jquery.js" mce_src="myjslib/jquery/jquery.js"><!-- // --></mce:script><mce:script langu
2010-09-02 11:02:00 4460
原创 一段代码,贴贴,无聊时候看看,会更无聊。
<br /> $myxls = new Excel_Creator ($downloadTitle."[企业数据]表面活性剂季度报表" ); $workSheet=array(); $condition = array(); $myPageViewList = array(); $myPageViewList = $myClassObj->get_listexport($condition); $workSheet[] = $myxls-
2010-09-01 14:00:00 1855
原创 对树进行节点汇总,要先汇子节点.再汇父节点(逐级汇总
<br />create table tb(ID int, PID int, NAME varchar(10) , VALUE int, [LEVEL] int ) <br />insert into tb values(0 , null, 'x1' , null, 1) <br />insert into tb values(1 , 0 , 'x2' , null, 2) <br />insert into tb values(2 , 1
2010-09-01 13:56:00 4492
phpunit附属lib
2014-04-10
ZendFramework中文帮助手册 1.11.4
2011-08-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人