ZendFramework 1.
それでは1.
Zend Framework 1.8の新機能
Zend Framework 1.
- Zend_
Tool - プロジェクト,
コントローラ, アクション等のスケルトンコードの自動生成 - Zend_
Application - アプリケーションのフレームワーク
- Zend_
Navigator - ナビゲーション
- Zend_
CodeGenerator - コード生成のフレームワーク
- Zend_
Serivce_ Amazon_ Ec2 - Amazon EC2サービス用のインターフェース
- Zend_
Service_ Amazon_ S3 - Amazon S3サービス用のインターフェース
このほかにも多数の機能が追加され,
この連載では1.
1.7と1.8のzfコマンドの違い
1.
最も重要な違いは,
Zend Framework 1.8のインストール
ZendFrameworkのダウンロードページから1.
執筆時点
今回から/wwwディレクトリにZendFrameworkを展開することにします。
[framework@localhost $ cd /www [framework@localhost www]$ tar zxvf ZendFramework-1.8.0.tar.gz
新しいzfコマンドの使い方
新しいzfコマンドは従来通りシンボリックリンクでパスが通っている場所へリンクを作ってからも利用できますが,
[framework@localhost www]$ ZendFramework-1.8.0/bin/zf.sh --help
を実行するとヘルプが参照できます。
プロジェクトの作成
- zf create project path
でプロジェクトが作成できます。プロジェクトを作成してみましょう。
[framework@localhost www]$ ZendFramework-1.8.0/bin/zf.sh create project test
プロジェクトファイルの中身は
[framework@localhost www]$ ls -R test test: application library public tests test/application: Bootstrap.php configs controllers models views test/application/configs: application.ini test/application/controllers: ErrorController.php IndexController.php test/application/models: test/application/views: helpers scripts test/application/views/helpers: test/application/views/scripts: error index test/application/views/scripts/error: error.phtml test/application/views/scripts/index: index.phtml test/library: test/public: index.php test/tests: application library phpunit.xml test/tests/application: bootstrap.php test/tests/library: bootstrap.php
となっており,