Zend Framework ではモデルの使用はオプションになっていますが、O/Rマッパー自体は用意されているので、それを使ってみます。今回は test_db というデータベースに test_table_name(主キーは test_primary_key)というテーブルがある前提にします。アプリケーションの構造は推奨にのっとって以下のようにします。 test/html/index.php test/application/models/Dao/Test.php test/application/views/scripts/index/index.phtml test/application/controllers/IndexController.php test/html/index.php models 以下にはパスが通っていないので、パスに追加します。Zend Framework の