用户登录
  用户:
  密码:
        注册 | 忘记密码
PHPEye 协作项目
PHP 手册翻译
PHP手册翻译
中文手册 | 英文手册
翻译进度 | CHM下载


Zend Framework 手册翻译
中文手册 | 英文手册
翻译进度 | 参与翻译
入门教程 | 讨论版块
Haohappy 翻译书籍:
PHP程序设计第二版 深入PHP:面向对象、模式与实践
国内唯一PHP面向对象开发书籍
勘误 | 书评 - 卓越 | China-pub
本站Logo

 
Powered By
HappyCMS 0.4.0

Zend Framework 1.9.5

SiteMap | BBS Archives

站点链接
论坛新贴 最新精华
最新翻译Blog 更多»
   [helloyou] Jani Hartikainen的博客 --- 优化代码 ...    [wulijun01234] 社区新闻:Windows版PHP缓存加速器 ...
   [wulijun01234] PHP中的策略模式    [wulijun01234] 关于注释的建议
   [wulijun01234] 冻结和解冻PHP对象    [wulijun01234] PHP5.3的新特性(一):对象接口的变 ...
   [wulijun01234] 如何创建更友好的随机密码 ...    [wulijun01234] PHP中构造GET查询字符串的捷径 ...
   [wulijun01234] PHPUnit 3.4中的新特性:Test Depend ...    [wulijun01234] 停止CSRF保护的误用
   [wulijun01234] 优化你的(ZF)web应用    [wulijun01234] 再论代码之美——PHP实战
   [wulijun01234] PHPro.org:应用配置    [wulijun01234] 用于解决PHP 命名空间分隔符输入问题 ...
   加入 | PHPEye翻译小组: mayongzhan (18) wulijun01234 (17) iwind (10) ringtail (9) haohappy (6) helloyou (3) jasonqi (0) littlexiang (0)
 

Sublime Text 2 is a new cross-platform text editor that I’ve recently switched to. It’s still in public beta, but already offers better performance (and battery life!) and a better look (fonts that render properly!) than Java-based IDEs such as Netbeans.

One thing it didn’t have was support for PHPUnit, so I’ve made a plugin. It’s available to install via Package Control.

You Need A phpunit.xml or phpunit.xml.dist File

To use this plugin, your project needs to contain either a phpunit.xml or a phpunit.xml.dist file. This file contains all the configuration that needs to be passed to PHPUnit. The plugin searches upwards from your code, and will favour a phpunit.xml file over a phpunit.xml.dist file if it finds both.

If you don’t have one, you need to go and create one now.

How To Use

< ......
2012-02-05 03:40:06 | 全文 | 评论(0)
 
  [Jon Haddad] New Project: Jester

I’ve started a new open source project called Jester. Jester is a rules engine for points and badges, also known as Gamification.

Jester is written in Python, using Redis for storage.

I’ve created a tiny Domain Specific Language for defining rules [...]

2012-02-04 04:41:19 | 全文 | 评论(0)
 
I was privileged to be invited to be a part of the /dev/hell podcast this week. Thanks to Chris and Ed for having me on. Check it out. And subscribe to their podcast.
2012-02-04 02:40:19 | 全文 | 评论(0)
 
  Etsy Code as Craft: Rasmus Lerdorf - PHP in 2012


In case you weren't able to make it (or missed the live stream) Rasmus Lerdorf gave a presentation last night at Etsy as a part of their "Code as Craft" series. They recorded the session and you can watch it here.


He talks about a few things:



  • the history of the PHP language
  • the state of PHP currently
  • what's coming up in 2012
  • and touches some on the upcoming PHP 5.4 features.


You can find more about their "Code as Craft" series (and other videos) on the Etsy page.

2012-02-04 02:40:12 | 全文 | 评论(0)
 
  Henrik Bj&oslash;rnskov's Blog: Symfony2: Using the validator symfony1 style


In this quick new post to his blog Henrik Bjørnskov shows how to use the validators in Symfony2 in a more traditional Symfony 1 style for a form.



Two of the more complicated components in Symfony2 is the Form and Validator component. The Validator is created in such a way it "always" need an Domain Object with Constraints associated through metadata. This is explained in detail here. But there is another way. A way that resemble's the symfony1 forms. Where you could specify the validations directly in your form class.


Code is included in the post to show how to load in a few of the validators (like NotBlank, Email and Choice) and how to use them in the settings defined in the "getDefaultOptions" method.

2012-02-04 01:40:04 | 全文 | 评论(0)
 
  Artur Ejsmont's Blog: How to build mongodb pecl extension in 32bit for PHP 5.2 on OSX Snow Leaopard


Artur Ejsmont has a recent post to his blog showing how to get a MongoDB PECL extension to compile in a 32bit OSX environment (Snow Leopard).



Here is a quick step by step guide on how to get mongodb and PHP5.2 mongo pecl extension going on your MacOSX in 32bit mode! NOTE: 32 bit mongodb binaries have 2GB address space limit so you wont be able to process too much on your laptop. You will still be able to code and connect to remote instances just fine.


His process includes five steps - well, eight if you count the optional "install MongoDB" ones too - complete with the commands you'll need to get things compiled, ready for copy and paste. You can find the MongoDB PECL package here.

2012-02-04 00:40:05 | 全文 | 评论(0)
 

With the release of Zend Framework 1.8 came the long awaited component for bootstrapping a Zend Framework application. Many different bootstrapping-solutions became obsolete with Zend_Application.



In the beginning of the framework most developers didn‘t give much thought on bootstrapping. Most of the initialisation work was done directly in index.php, the central starting point of the application. Teams often moved that bootstrapping code to a separate configuration script. The solution worked, but many people wanted a more standardised process for application initialisation.



Continue reading "Zend Framework application.ini Cheat-Sheet"
2012-02-03 23:40:07 | 全文 | 评论(0)
 
  Freek Lijten's Blog: Currently on PHP's internals - Property Accessors

Freek Lijten has posted another "Currently on PHP's internals..." post to his blog today (here's the previous one) with a look at the discussions around the idea of having "property accessors" in PHP - a standardized way of defining getters/setters in objects.

Today I will be discussing a feature that at this moment is called "Property Accessor". It is a method of defining getters and setters. Originally an RFC was defined as early as september 2009, but recently new discussion took place and an actual patch was created. There is no certainty this feature will ever make a PHP version but discussion seems to target implementation details and not the feature itself, so things are looking bright for this feature.

There's two RFCs posted about the topic - the original proposal (from Dennis Robinson) and 2012-02-03 23:40:03 | 全文 | 评论(0)