Ethna的ActionとView@設計勉強会

4,109 views

Published on

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

Published in: Technology
  • Be the first to comment

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

×