Ethna 
Action . View ..

         id:sotarok
     Sotaro KARASAWA
    sotaro.k@gmail.com



         Copyright (c) sotarok...
Agenda
  œ
Ethna .. .±
              .
  ..... .®.....
  ¨




           Copyright (c) sotarok 2008, Attribution-NonComme...
œ




    Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
œ

id:sotarok
  . .

 .. ...
  .. ..
. .  .  !!!
   Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
..            .                  ...




 wassr.jp/user/sotarok2 * 2!!
     twitter.com/sotarok
    d.hatena.ne.jp/sotarok...
.




     Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
.


. . 
€           .           ....




     Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
.
. ...




Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
.
»  .     Û                                     ...                      ..                       .
   .
».
   ... (.    ...
....
» ..        ...              .F...                                          …




»   .   .




                  Cop...
. ...
    yandod . .
  5...
. . .....



   Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
..        .....



. .       .. .....
             ..
      . .....
       . ....
             …



       Copyright (c) s...
Ethna .±




         Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
Ethna .                                .                              .

Ethna(...)..PHP ..
           . . ..             ...
Ethna .                          .                              .



          Model                                     V...
Ethna .                            .                              .


    AppObject/AppManager
                           ...
Ethna .                          .                              .

    AppObject/AppManager
     ADOdb...DB               ...
Ethna .                          .                              .

    AppObject/AppManager
     ADOdb...DB               ...
Ethna. 
» Action
    » (authenticate) - prepare - perform
» View
    » preforward - forward - template
»         .        ...
1                /1                    .1
»                 . ..
» action
  » Blog
     » Post.php
     » Post/Do.php
    ...
.




    Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
....(1)
»
    prepare (Action) . .
      .                                         .Ë .




                  Copyright (c...
....(2)
» DB.
  perform (Action) . .
             è(        . è).

» ... .          .. .
 (prepare
  ! ... . )




       ...
....(3)
»   ...     ... preforward (View)
  . .
»(     è. ..      )
»
  ../ (view
    . ... ..          .....
            ...
..3. 
 .


   post                               post_do

 prepare                              prepare

 perform         ...
..3. 
 .
... .            .!c ......


   post                               post_do

 prepare                            ...
..3. 
 .
  ... .            .!c ......

     post                               post_do

   prepare                       ...
..3. 
 .
  ... .            .!c ......

     post                               post_do

   prepare                       ...
....(5)
» DB.$. ..
 » 
 » 
                .    ...
                .Ë .  .
     »           . Ethna_DB_ADOdb L
     » add...
......®.....




      Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
.....
» if    .
   »       .  .§    ... .....                                                è

» DB.DB.
       .... ... ....
®.....
» DB..       . . .
    » SQL
      » autoExecute.. .. . ....
      »     . .. . .... ...
    » ....    JOIN.. ..   ...
¨




    Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
.                     ...
»
»
         . ....                       
     .
    » CakePHP    ....
      » http://getmockin...
.                   




Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
nequal
 .     .
     .
ƒ     ..




  Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
nequal
» . . sotarok
» . riaf
» . .. wozozo ( C)




             Copyright (c) sotarok 2008, Attribution-NonCommercial C...
..




Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
Open PEAR Server

                    .


(riaf..              .. .)
      Copyright (c) sotarok 2008, Attribution-NonComm...
.




Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
Ethna的ActionとView@設計勉強会
Upcoming SlideShare
Loading in...5
×

Ethna的ActionとView@設計勉強会

3,689

Published on

ビジネスロジックとプレゼンテーションロジックを分けてしまっちゃうよ!

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,689
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
17
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Ethna的ActionとView@設計勉強会

  1. 1. Ethna Action . View .. id:sotarok Sotaro KARASAWA sotaro.k@gmail.com Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  2. 2. Agenda œ Ethna .. .± . ..... .®..... ¨ Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  3. 3. œ Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  4. 4. œ id:sotarok . . .. ... .. .. . . . !!! Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  5. 5. .. . ... wassr.jp/user/sotarok2 * 2!! twitter.com/sotarok d.hatena.ne.jp/sotarok .. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  6. 6. . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  7. 7. . . . € . .... Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  8. 8. . . ... Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  9. 9. . » . Û ... .. . . ». ... (. ) .. . ...Ethna .. *1 » ..... ... .. .... » (*1 ... ` events.php.gr.jp .) Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  10. 10. .... » .. ... .F... … » . . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  11. 11. . ... yandod . . 5... . . ..... Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  12. 12. .. ..... . . .. ..... .. . ..... . .... … Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  13. 13. Ethna .± Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  14. 14. Ethna . . . Ethna(...)..PHP .. . . .. .... ... MVC . ... .. » . »… http://ethna.jp/ethna-about.html Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  15. 15. Ethna . . . Model View Controller Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  16. 16. Ethna . . . AppObject/AppManager template (Smarty) Action View Controller Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  17. 17. Ethna . . . AppObject/AppManager ADOdb...DB template (Smarty) prepare perform preforward Controller Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  18. 18. Ethna . . . AppObject/AppManager ADOdb...DB template (Smarty) prepare perform preforward è. Controller Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  19. 19. Ethna. » Action » (authenticate) - prepare - perform » View » preforward - forward - template » . .§ » .Model » 3.. .. SQL .. .. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  20. 20. 1 /1 .1 » . .. » action » Blog » Post.php » Post/Do.php » View.php » view » Blog » Post.php » View.php Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  21. 21. . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  22. 22. ....(1) » prepare (Action) . . . .Ë . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  23. 23. ....(2) » DB. perform (Action) . . è( . è). » ... . .. . (prepare ! ... . ) Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  24. 24. ....(3) » ... ... preforward (View) . . »( è. .. ) » ../ (view . ... .. ..... ..) ». DB . . . .. . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  25. 25. ..3. . post post_do prepare prepare perform perform perforward perforward Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  26. 26. ..3. . ... . .!c ...... post post_do prepare prepare perform perform perforward perforward Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  27. 27. ..3. . ... . .!c ...... post post_do prepare prepare perform perform perforward perforward DB !c` L ... . .! è Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  28. 28. ..3. . ... . .!c ...... post post_do prepare prepare perform perform perforward perforward !c` L ... Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  29. 29. ....(5) » DB.$. .. » » . ... .Ë . . » . Ethna_DB_ADOdb L » add/update autoExecute . (ADOdb6 ) » find ... » findBy* ... » JOIN.. » .. . JOIN.... » . (.... . ) » - » - _ . .. 5 » id / created / updated Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  30. 30. ......®..... Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  31. 31. ..... » if . » . .§ ... ..... è » DB.DB. .... ... .... . ..SQL . » findBy* ... .... ... . » . L Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  32. 32. ®..... » DB.. . . . » SQL » autoExecute.. .. . .... » . .. . .... ... » .... JOIN.. .. . » .. Û .... » . » ...... ..... º. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  33. 33. ¨ Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  34. 34. . ... » » . .... . » CakePHP .... » http://getmockingbird.org/ » symfony » .. Ethna 3.. ƒ . .CakePHP.DB .. .... ..... » ...PHP 5 » '.Ethna. ... … » .. (PHP. .?) ... F.. .. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  35. 35. . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  36. 36. nequal . . . ƒ .. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  37. 37. nequal » . . sotarok » . riaf » . .. wozozo ( C) Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  38. 38. .. Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  39. 39. Open PEAR Server . (riaf.. .. .) Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  40. 40. . Copyright (c) sotarok 2008, Attribution-NonCommercial Creative Commons
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×