Cake Phpで簡単問い合わせフォームの作り方

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    あああ

    Favorites, Groups & Events

    Cake Phpで簡単問い合わせフォームの作り方 - Presentation Transcript

    1. CakePHP 簡単問合せフォームの作り方 第 17 回 高蔵寺 SE 勉強会 2008.11.16  あつ
    2. 自己紹介 ■ 名前  あつ ■ 所属   有限会社かしもソフトウェア ■ ブログ  WEB で地域活性化 CakePHP クッキング ■ 地域ホームページ  清洲城
    3. 流れ ■ セットアップ ■ 設定 ■ コーディング
    4. 目的 ■ 問合せフォーム(簡易版)を作成 ■ CakePHP での開発の流れを把握 ■ どれくらい簡単にできるかを把握
    5. セットアップ
    6. ダウンロード
    7. セットアップ ■ ダウンロードしたファイルを展開 ■ 展開したファイルを PHP が動く環境へ設置
    8. CakePHP のディレクトリ構造 フレームワーク本体 設定ファイル コントローラー モデル ビュー
    9. 設定
    10. 最初の設定 ■ app/tmp/ 以下のディレクトリに書き込み   権限を与える ■ app/config/core.php の Seculity.salt    を変更する
    11. トップページにアクセスする ■ このような画面がでれば、設置成功
    12. コーディング
    13. コーディングの基本 ■ コントローラー( Controller )は処理を書く ■ モデル( Model )は DB とのやりとりを書く ■ ビュー( View )は画面表示を書く
    14. コントローラーの作成 <?php class RequestsController extends AppController { var $uses = array(); function index() { } } ■ app/controllers/requests_controller.php   を作成
    15. ビューの作成 <h1> ご意見ページ </h1> このサイトへのご意見はこちらからお願いします。 <br /> <?php e($form->create('Requests', array('type' => 'post', 'url' => DS . 'requests' . DS))); ?> <?php e($form->textarea('Requests.message', array('cols' => '70', 'rows' => '10'))); ?> <?php e($form->submit('  送信する  ')); ?> <?php e($form->end()); ?> ■ app/views/requests/index.ctp を作成
    16. /requests/ の実行結果
    17. コントローラーの作成(続き) <?php class RequestsController extends AppController { var $uses = array(); function index() { if (!empty($this->data)) { $this->log($this->data['Requests']['message'], 'requests'); $this->Session->setFlash(' ご意見ありがとうございます '); } } }
    18. 実際に作ったものを見てみましょう
    19. おしまい

    + あつ あつ , 2 years ago

    custom

    3688 views, 0 favs, 0 embeds more stats

    第17回高蔵寺SE勉強会の発表資料です

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3688
      • 3688 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Tags