Archive for the ‘Askeet24’ Category

[原创中文翻译]symfony askeet24:终于校译完了… …

Thursday, March 20th, 2008

    今天终于完成了校译,我已经连续很长时间没有好好享受一下业余休息时间了... ...呵呵!虽然比较劳累,但是心里很高兴,毕竟这件事情有始有终得完成了。Never do another thing when you have not finished one yet. 想想2007年10月份,当时我心里都琢磨我能不能把这24篇英文文章翻译完,而且对于一个还没有把PHP完全掌握好的新手来说,翻译一份PHP开发框架的实践使用教材,而且要弄懂框架里的东西,压力似乎比较大。 就好比你还没有完全学会爬,就开始进行跑的动作。天啊!我都挺佩服我当时的想法。不过,人能成功都是被逼出来的,天下事没有什么怕的,只要你具备有毅力,没有你做不好的!艰难的翻译开始了,中间夹杂着重新温习PHP基本嵌套开发,体会PHP MVC模式开发思想,甚至我自己写了一个小的MVC框架的PHP论坛来拼命练习,光这些当然是不够的,还要熟读Symfony文档,尤其是大量的API文档。呵呵!个中的滋味只有自己知道。 校译完成了,下面还有很多需要做的... ...

[原创中文翻译]symfony askeet24:第二十四天,后面的工作是什么呢?

Thursday, October 11th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] (译者:这是最后一篇了,大体是关于akseet程序的用途,安装,下载,文档等一系列内容,随意看看就行,笔者只翻译了文件结构和数据模型等部分。) Use it 使用askeet The askeet website is open to the public. You can advertise it and talk about it to your friends and relatives. Some of the test contributions will be removed, but most of the existing questions and user accounts will remain. Askeet is a great tool to find answers - ...

[原创中文翻译]symfony askeet24:第二十三天,网站国际化。

Thursday, October 11th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] Localization 本地化 What if the call to an address like: 这个URL如何: http://fr.askeet.com/ ...displayed only the French questions? Well, this is quite easy, because since the eighteenth day, such an URI is understood as a universe. ... ...只显示法语问题。很简单,第八天的教材URL可以被当作标签处理。 Content 内容 Creating a question in a language universe will have it tagged automatically with the language tag (here: 'fr'). And, if ...

[原创中文翻译]symfony askeet24:第二十二天,上传服务器发布网站。

Thursday, October 11th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] Synchronization 同步 Good practices 推荐的方案 There are a lot of ways to synchronize two environments for a website. The basic file transfers can be achieved by an FTP connection, but there are two major drawbacks to this solution. First, it is not secure, the data stream transmits in the clear over the Internet and ...

[原创中文翻译]symfony askeet24:第二十一天,创建搜索引擎。

Wednesday, October 10th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] How to build a search engine? 怎么创建一个搜索引擎呢? The most popular suggestion about the 21st day addition proved to be a search engine. 第二十一世纪最流行的是互联网搜索引擎。 If the Zsearch extension (a PHP implementation of the Lucene search engine from Apache) had already been released by Zend, this would have been a piece of cake to implement. Unfortunately, ...

[原创中文翻译]symfony askeet24:第二十天,增加管理员和版主。

Wednesday, October 10th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] The expected result: what the client says 需求分析:客户的要求是什么 Today's job will consist of a few new actions, new templates and new model method, and we already know how to do that. The hardest part is probably to define what is needed, and where to put it. It is both a functional and ...

[原创中文翻译]symfony askeet24:第十九天,网站性能和缓存。

Tuesday, October 9th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] Load testing tools 负载测试工具 Unit tests, described during the fifteenth day, can validate that the application works as expected if there is only one user connected to it at a time. But as soon as you release your application on the Internet - and that's the least we can wish for you ...

[原创中文翻译]symfony askeet24:第十八天,过滤器。

Monday, October 8th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] We saw yesterday how to make the askeet service available through an XML API. Today's program will focus on filters, and we will illustrate their use with the creation of sub domains to askeet. For instance, 'php.askeet.com' will display only PHP tagged questions, and any new question posted in this ...

[原创中文翻译]symfony askeet24:第十七天,API。

Monday, October 8th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] The API 程序(二次)开发接口 An Application Programming Interface, or API, is a developer's interface to a particular service on your application, so that it can be included in external websites. Think about Google Maps or Flickr, which are used to extend lots of websites over the Internet thanks to their APIs. 程序(二次)开发接口,API,提供给开发者进行二次开发的程序接口,可以被外部网站使用。想一下Google地图或者Flickr,由于他们的API接口在互联网上催生了很多网站。 Askeet makes no ...

[原创中文翻译]symfony askeet24:第十六天,今天真懒。

Monday, October 8th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] After fifteen hours of hard work, we all deserve some time off. So we have decided to declare the sixteenth day the lazy day, because getting some rest is always a good thing when developing web applications. There is no symfony tutorial published today, but there is still a lot ...

[原创中文翻译]symfony askeet24:第十五天,单元测试。

Monday, October 8th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] Simple test 简单测试 There are many unit test frameworks in the PHP world, mostly based on Junit. We didn't develop another one for symfony, but instead we integrated the most mature of them all, Simple Test. It is stable, well documented, and offers tons of features that are of considerable value for ...

[原创中文翻译]symfony askeet24:第十四天,标签II。

Sunday, October 7th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] Add tags to a question 给问题填加多个标签 The form 表单 Not only do we want to give the ability to a registered user to add a tag for a question, we also want to suggest one of the tags given to other questions before if they match the first letters he/she types. This is called ...

[原创中文翻译]symfony askeet24:第十三天,标签I。

Saturday, October 6th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] The QuestionTag class 问题标签类 There are several ways to implement tags. We chose to add a QuestionTag table with the following structure: 实现标签的方法有很多。按照下图所示结构增加QuestionTag数据表: When a user tags a question, it creates a new record in the question_tag table, linked to both the user table and the question table. There are two versions of the ...

[原创中文翻译]symfony askeet24:第十二天,电子邮件。

Saturday, October 6th, 2007

[欢迎转载,转载请注名出处http://symfony.net.cn。本文英文版权归symfony官方网站所有] (译者:本章节就是介绍了简单的密码找回功能,用电子邮件实现。实现发送的密码是随机码,还没有实现用户更改自己密码操作,呵呵,后面askeet会介绍怎么实现后续功能的。好了,介绍完了,那么那些烦琐的内容就不翻译了,我们直接进入主题。) Password request form 密码请求表单 In the user module, we will create a new action that displays a form requesting an email address. In askeet/apps/frontend/modules/user/actions/action.class.php, add: 在用户模块里,我们创建新动作来显示email表单。在 askeet/apps/frontend/modules/user/actions/action.class.php,加上: public function executePasswordRequest() { } In modules/user/templates/, create the following passwordRequestSuccess.php: 在module/user/templates/下,创建passwordRequestSuccess.php模板: <h2>Receive your login details by email</h2> <p>Did you forget your password? Enter your email to receive your login details:</p> <?php echo form_tag('@user_require_password') ?> <?php echo ...

[原创中文翻译]symfony askeet24:第十一天,订阅。

Friday, October 5th, 2007

[欢迎转载,转载请注名出处http://watir.cn。本文英文版权归symfony官方网站所有] Popular questions feed 订阅流行问题 Link to the feed in the head 把订阅链接放到顶部 What we want is an RSS popular questions feed inserted in the <head> of the global layout. The resulting HTML should look like: 我们需要的是在布局页面的<head>旁加上到流行问题的RSS订阅链接。HTML代码看起来像: <link rel="alternate" type="application/rss+xml" title="Popular questions on askeet" href="http://askeet/frontend_dev.php/feed/popular" /> To do this, open the layout.php and add in the <head>: 为了实现这个功能,打开layout.php,把这段加到<head>: <?php echo ...