On twitter

RT @christiney35: 最近很多人介紹新朋友合作,真好。我也需要人家介紹 Python 工程師耶~快來吧,Python 工程師!! #fb

follow me on twitter

Posts Tagged ‘zend’

將 Zend Framework 放進 CodeIgniter 4

基本上這裡所謂的整合就是用 CodeIgniter 的 hooks 來做, 單純用 hooks 來設定 include_path, 不然直接設定 include_path, 把 Zend Framework 當成跟 PEAR 類似的放著也可以, 不過由於這樣整合看起來比較帥, 之後程式如果搬家也不會因為失誤而漏了 ZF :p 又, 用 SVN 來管理也方便

1. 下載 ZF, 把 library 放進 CodeIgniter
就依我的方式, 我是把 ZF 解開後, 把 library copy 放到 CodeIgniter 的 system 下面, 命名為 zendframework

/project/system/zendframework

2. 開啟 CodeIgniter hook
修改 /project/system/application/config/config.php

$config['enable_hooks'] = TRUE;
Read the rest of this entry »

November 10th, 2007 CodeIgniter Tags: , , , ,

Zend Framework 初探 2

因為上週末我掰咖了, 所以都在房間裡看書, 看電影。我把 iWoz 這本書看完了, 也看了門徒, 看了 Linda Linda Linda, 然後一整天都在吃泡麵 XD 也玩了一下 Zend Framework(以下簡稱 ZF), 試用一下可不可以單獨拿 ZF 其中的元件來用, 因為 ZF 的文件看起來好像可以這麼做。

在開始之前, 由於 ZF 只能在 PHP5 上面跑, 而我的 Mac OS X 預設的環境是 Apache 1.3 + PHP4, 所以我找到了這裡, 可以下載包好給 Mac 用的 PHP5 binary 套件, 很方便! 裝完只要 restart apache 就好了!

OK! 首先先下載 Zend framework, 然後我是解開放到

/usr/local/php5/lib/php/Zend

接著設定 php.ini 的 include_path, 加入 /usr/local/php5/lib/php/Zend/library, 變成

include_path = ".:/usr/local/php5/lib/php/Zend/library"

接著參照 ZF 的文件, 試一下 Zend_Service_Delicious 這個元件, 寫一小段程式如下, 哈! 馬上就可以列出我在 del.icio.us 裡的書簽 title, 真方便!

Read the rest of this entry »

August 21st, 2007 Programming Tags: , , ,
Partners of Oceanic / 人生海海

jiwosca