¤Þ¤º¤Ï¤³¤³¤òÆɤߤޤ·¤ç¤¦

MVC¥â¥Ç¥ë¡¿ÍøÍѤ¹¤ë¥á¥ê¥Ã¥È

ZendFramework¤Ï¡¢PHP¤ò»ÈÍѤ·¤ÆMVC¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç¸úΨÎɤ¯³«È¯¤¹¤ë¤¿¤á¤Î¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤Ç¤¹¡£
ZendFramework¤Ë¤Ï¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬ÍÑ°Õ¤µ¤ì¤Æ¤ª¤ê¡¢¤½¤ì¤é¤òÍøÍѤ¹¤ë¤³¤È¤Ç¶¯ÎϤʵ¡Ç½¤ò¼ÂÁõ¤¹¤ë¤³¤È¤¬²Äǽ¤È¤Ê¤ê¤Þ¤¹¡£

M(Model)

½èÍý¤ÎÃæ³Ë¤òô¤¦¡£¥á¥¤¥ó¤È¤Ê¤ë¥Ó¥¸¥Í¥¹¥í¥¸¥Ã¥¯¡¢½èÍý¤¬¤³¤ì¤Ë¤¢¤¿¤ë¡£
²èÌÌɽ¼¨¤äÃͤÎÆþ½ÐÎϤˤϴØÍ¿¤·¤Ê¤¤¡£

V(View)

²èÌ̽ÐÎϤòô¤¦¡£²èÌÌɽ¼¨¤Î¥Æ¥ó¥×¥ì¡¼¥È¤Ê¤É¤¬¤³¤ì¤Ë¤¢¤¿¤ë¡£

C(Controller)

¥æ¡¼¥¶¡¼¤ÎÆþÎϤ˱þ¤¸¤¿½èÍý¤Î·èÄê¤òô¤¦¡£¼«Ê¬¼«¿È¤Ç¤Ïɽ¼¨¤ä½èÍý¤ò¹Ô¤Ê¤ï¤Ê¤¤¡£
View¤«¤é¤ÎÆþÎϤ˱þ¤¸¤Æ¡¢É¬Í×¤Ê¥í¥¸¥Ã¥¯¤Î¼Â¹Ô¤òModel¤Ë°ÍÍꤷ¡¢¤½¤Î·ë²Ìɽ¼¨¤òView¤Ë°ÍÍꤹ¤ë¡£

ÍøÍѤ¹¤ë¥á¥ê¥Ã¥È

  • µ¡Ç½¤´¤È¤ÎÆÈΩÀ­
  • ³«È¯Ì̤ǤÎʬ¶È¤Î¤·¤ä¤¹¤µ - ÆÀ°ÕʬÌî¤Î¼ÂÁõ¤Ë½¸Ãæ¤Ç¤­¤ë
  • ¥á¥ó¥Æ¥Ê¥ó¥¹À­¤Î¹â¤µ

ZendFramework¤òÀßÃÖ¤¹¤ë

http://framework.zend.com/download/stable

ZendFramework-0.9.2-Beta.zip¤ò²òÅष¡¢library¤ÎÃæ¤òinclude¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¡£

rewrite_module¤ò»ÈÍѤ¹¤ë¤Î¤Ç¡¢.htaccess¤òÀßÃÖ

RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

composer¤ÎÍøÍÑ

2016ǯ9·î»þÅÀ¤Ç¤Ïcomposer¤ò»È¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£

$ composer.phar require zendframework/zendframework

ÍѸì²òÀâ

¥Ç¥£¥¹¥Ñ¥Ã¥Á

¥Ç¥£¥¹¥Ñ¥Ã¥Á¤È¤Ï¡¢ ¥³¥ó¥È¥í¡¼¥é¤È¥¢¥¯¥·¥ç¥ó¤ò¥ê¥¯¥¨¥¹¥È¥ª¥Ö¥¸¥§¥¯¥È¤«¤é¼õ¤±¼è¤ê¡¢ ¤½¤ì¤ò¼ÂºÝ¤Î¥³¥ó¥È¥í¡¼¥é¥Õ¥¡¥¤¥ë/¥¯¥é¥¹¤È¥á¥½¥Ã¥É¤ËÂбþ¤µ¤»¤ë½èÍý¤Î¤³¤È¤Ç¤¹¡£ ¥³¥ó¥È¥í¡¼¥é¤ä¥¢¥¯¥·¥ç¥ó¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢ ¥Ç¥Õ¥©¥ë¥È¤Î¥³¥ó¥È¥í¡¼¥é¤ä¥¢¥¯¥·¥ç¥ó¤Ë¥Ç¥£¥¹¥Ñ¥Ã¥Á¤·¤Þ¤¹¡£

(Zend Framework¥ê¥Õ¥¡¥ì¥ó¥¹¥¬¥¤¥É - 7.1.1 ƳÆþ¤è¤ê)

¥ë¡¼¥Æ¥£¥ó¥°

¥ê¥¯¥¨¥¹¥È¤ÎÆâÍƤòÄ´¤Ù¤Æ¡¢ ¤½¤Î¥ê¥¯¥¨¥¹¥È¤ò½èÍý¤¹¤ë¥³¥ó¥È¥í¡¼¥é¤È¥¢¥¯¥·¥ç¥ó¤ò·èÄꤹ¤ë½èÍý¤Î¤³¤È¤Ç¤¹¡£
¡ÊÃæά¡Ë
¥ë¡¼¥Æ¥£¥ó¥°¤¬È¯À¸¤¹¤ë¤Î¤Ï°ìÅÙ¤À¤±¡¢ ¤Ä¤Þ¤êºÇ½é¤Ë¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±¼è¤Ã¤Æ¤«¤é ºÇ½é¤Î¥³¥ó¥È¥í¡¼¥é¤Ë¥Ç¥£¥¹¥Ñ¥Ã¥Á¤µ¤ì¤ë¤Þ¤Ç¤Î´Ö¤À¤±¤Ç¤¹¡£

(Zend Framework¥ê¥Õ¥¡¥ì¥ó¥¹¥¬¥¤¥É - 7.1.1 ƳÆþ¤è¤ê)

Î㡧Zend_Controller_Router¤òÍøÍѤ¹¤ë¾ì¹ç¤Î¥ë¡¼¥Æ¥£¥ó¥°½èÍý

¥ë¡¼¥¿¤Ï¥ê¥¯¥¨¥¹¥ÈURI¤ò²òÀϤ·¡¢¥³¥ó¥È¥í¡¼¥é¤È¥¢¥¯¥·¥ç¥ó¡¢¤½¤·¤Æ¥Ñ¥¹¤Ë´Þ¤Þ¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤ò¼èÆÀ¡£¤½¤Î¸å¥ê¥¯¥¨¥¹¥È¥ª¥Ö¥¸¥§¥¯¥È¤Ë³ÊǼ¤¹¤ë¡£


¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:31