CakeMatsuri事例紹介「CakePHPでつくる地域SNS ~全国40ヶ所以上で展開する地域SNSのシステム~」

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

    Favorites, Groups & Events

    CakeMatsuri事例紹介「CakePHPでつくる地域SNS ~全国40ヶ所以上で展開する地域SNSのシステム~」 - Presentation Transcript

    1. CakePHP SNS CakePHPでつくる地域SNS ~全国40 40 SNS 40ヶ所以上で展開する地域SNS SNSのシステム~ CakeMatsuri 2009.10.31 あつ
    2. ■ 名前  あつ ■ 所属  株式会社 一六社(いちろくしゃ) ■ ブログ WEB WEB WEBで地域活性化        CakePHP CakePHP CakePHPクッキング
    3. なぜCake? Cake?
    4. 地域SNS SNS SNS高蔵寺 http://kozoji.chiikisns.net/
    5. 地域SNS SNS SNS加子母(かしも) http://sns.kashimo.net/
    6. 地域SNS SNS SNS鵠沼(くげぬま) http://sns-kugenuma.sapio16.jp/
    7. 今日話すこと
    8. ドメインが ばらばらな サイトの作り方
    9. ドメインが ばらばら ・http://kozoji.chiikisns.net/ http://kozoji.chiikisns.net/ ・http://sns.kashimo.net/ http://sns.kashimo.net/ ・http://sns-kugenuma.sapio16.jp/ http://sns-kugenuma.sapio16.jp/
    10. WEB DB WEB+DB (PostgreSQL PostgreSQL PostgreSQL)
    11. 地域SNS SNS SNS高蔵寺 ドキュメントルート Cake app cake 地域SNSこんな感じではなく SNS SNS加子母 ドキュメントルート Cake app cake
    12. Cake Cake本体 app webroot 地域SNS SNS SNS高蔵寺 コピー 地域SNS SNS SNS加子母
    13. 各地域SNS SNS SNSのドキュメントルート /index.php <?php if (!defined('ROOT')) { define('ROOT', '/path_to_cake_install'); } if (!defined('APP_DIR')) { define('APP_DIR', 'app'); }
    14. デザインも ばらばら
    15. そもそもなんで そんなに ばらばら?
    16. でもレイアウト ファイルって 編集できる?
    17. レイアウトファイル <body>  : [main_contents]  : [sub_contents]  :
    18. app/app_controller.php function afterFilter() { $this->layout = null; $this->output = file_get_contents('各SNSのレイアウト'); $this->output = str_replace('[main_contents]', $contents, $this->output); }
    19. 苦労した点
    20. 苦労した点?
    21. Controller:20 Model:22 View:172
    22. 30 30日でできた
    23. OpenidComponent QdmailComponent
    24. 日本語化ツール
    25. アソシエーション で苦戦
    26. $this->Model->query( 'select * from TableA');
    27. そんな時は joins
    28. $joins = array( array( 'table' => 'model_c', 'alias' => 'ModelC', 'type' => 'INNER', 'conditions' => 'ModelC.aid = ModelA.id' ), array( 'table' => 'model_b', 'alias' => 'ModelB', 'type' => 'INNER', 'conditions' => 'ModelB.id = ModelA.bid' ) ); $params = array( 'conditions' => array('ModelA.flg' => 0, 'ModelB.flg' => 0, 'ModelC.cid' => $cid ), 'joins' => $joins, ); $data = $this->ModelA->find('all', $params);
    29. 今後の予定
    30. Ktai Library
    31. ありがとう ございました
    SlideShare Zeitgeist 2009

    + あつ あつ Nominate

    custom

    161 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 161
      • 161 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 1
    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?