Install Zend Framework 1.8 on Ubuntu with Zend_Tool

zendframework-ubuntu

One of new features in ZendFramework 1.8 is "Zend_Tool".
Zend_Tool
provides a command-line script that can be used to ease many common project related tasks like

  • setting up the project tree
  • add controllers
  • add actions (and related view scripts)
  • add model classes
  • etc.

This instruction will guideline you to install Zend Framework 1.8 on Ubuntu with Zend_Tool.

zendframework-ubuntu

One of new features in ZendFramework 1.8 is "Zend_Tool".
Zend_Tool
provides a command-line script that can be used to ease many common project related tasks like

  • setting up the project tree
  • add controllers
  • add actions (and related view scripts)
  • add model classes
  • etc.

This instruction will guideline you to install Zend Framework 1.8 on Ubuntu with Zend_Tool.
FYI my environment are:

  • Ubuntu 9.04 (Jaunty Jackalope)
  • Apache 2.2

 

Zend_Loader autoload deprecated in Zend Framework 1.8

Zend Framework 1.8.2

I found this notice after upgrade Zend Framework to 1.8 Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in C:\AppServ\www\league\library\Zend\Loader.php on line 207 Because Zend_Loader's autoloader has been deprecated in Zend Framework version 1.8 and I use this line in bootstrap. require_once 'Zend/Loader.php'; Zend_Loader::registerAutoload(); The solution is change them to require_once 'Zend/Loader/Autoloader.php'; $loader = Zend_Loader_Autoloader::getInstance(); $loader->registerNamespace('../application');  $loader->setFallbackAutoloader(true); $loader->suppressNotFoundWarnings(false);

Open-source PHP applications that changed the world

From managing databases to shopping, writing blogs to sending emails. Ten years of passion, great software architectures, team work and revolutionary ideas. Here are the most influential open-source PHP applications to date

PHP and Zend Optimize

นั่งทำเว็บให้เพื่อน ปลุกปล้ำอยู่ครึ่งวันกับการ upload file เพื่อรัน demo
พบปัญหาอยู่ 2 อย่าง ที่ไม่เคยเจอ

1. Fatal error: Unable to read 99999 bytes in xxx.php on line 0
อันนี้จัดการด้วยไปเพิ่ม memory_limit ใน php.ini
ปล. php config พวกนี้สามารถ ตั้งค่าแยกกันโดยสิ้นเชิงในแต่ละ path ได้ เช่น
/public_html/a  memory_limit = 8M
/public_html/b memory_limit = 16M

วิธีทำก็แค่ไปสร้างไฟล์ php.ini ใน path ที่อยากจะ overide config ก็มีผลบังคับใช้เลย โดยไม่ต้อง restart apache
(ตอนแรกไม่รู้ ไปหาวิธี restart apache ตั้งนาน)

ซึ่งถ้าสังเกตจาก phpinfo() ก็จะรู้ว่ามัน overide มาจริงหรือเปล่า (ตามรูปเลย)


จบปัญหาที่ 1
เนื่องจากจำเป็นต้องใช้ Zend Optimizer แต่ยังไม่ได้ enable ก็เลยเจอแบบนี้ ไปตามระเบียบ
 

จัดการ enable ซะที่ php.ini เหมือนเดิม แต่ก็ยังมีปัญหาอีกนิดหน่อย

Zend Framework hits 1.0 milestone

The Zend Framework for PHP has hit its 1.0.0 milestone and is available for download. Zend uses the New BSD license, which is OSI-approved.

Zend Framework hits 1.0 milestone by ZDNet's Dana Blankenhorn -- The Zend Framework for PHP has hit its 1.0.0 milestone and is available for download. Zend uses the New BSD license, which is OSI-approved.