タグ

ブックマーク / bayside.hatenablog.com (1)

  • Zend Framework でモデルを使う - Devel::Bayside

    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 の

    Zend Framework でモデルを使う - Devel::Bayside
    hardboiled243
    hardboiled243 2011/01/28
    MVCにおけるモデルについて。ZendFrameworkでのモデルの使い方の実例。
  • 1