CakePHP
ä¸æ¨æ¥ã«ORæ¤ç´¢ã®ã»ãã¯ä¿®æ£ããã°ããã§ãããCakeDCã®search pluginã®è¨äºãå°ãªãã®ã§1åç½®ãã¨ãã¾ãããCakePHP Advent Calendar 2010 8æ¥ç® - kanonjiã®æ¥è¨ã®ã³ã¼ãã«æ©è½è¿½å ãã¾ãããè²ã ãªæ¤ç´¢ã®æ¹æ³ã®ä¸ã«ãHABTMã®æ¤ç´¢ãæ¸ãã¦ããã¾ãããããâ¦
CakeDCã®search pluginã®è¨äºãå°ãªãã®ã§1åç½®ãã¨ãã¾ãããCakePHP Advent Calendar 2010 8æ¥ç® - kanonjiã®æ¥è¨ã®ã³ã¼ããã¡ãã£ã¨ã ãç´ãã¾ãããã¿ã°æ¤ç´¢ãªã©ãå®è£ ããHABTMã®æ¤ç´¢ã§ããã©ã°ã¤ã³ã®Readme.mdã«ã¯ãã£ãContainableããã¤ãã¢ã使ããªâ¦
DboSource::expression() ã¨ããã¡ã½ãããè¦ããã¦ãã¡ãã£ã¨æ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ãããèªåã¨ãã¦ã¯ãã£ã¨éæ³ã®ã¡ã½ããçãªä¾¿å©ãªã®ã ã£ãããããªã¼ã¨ãæã£ã¦ããã§ãããæ®å¿µãªããããã§ã¯ç¡ãã¿ãããã§ãæè§èª¿ã¹ãã®ã§ã¨ã³ããªã¼ã«ãã¦ããâ¦
CakePHPã§ã¯HtmlHelper::script()ã使ãJavaScriptãã¡ã¤ã«ãèªã¿è¾¼ãscriptã¿ã°ãçæãã¾ããããã¯ããã§ä½¿ããã§ãããjQueryãã©ã°ã¤ã³ã使ãå ´åã¯ããã¼ãå®äºã®ã³ã¼ã«ããã¯ã§åããããã¨ããã§ããã¾ããå é¨ã«ç½®ãã¦ããJSONã¨ãç»åã¨ããèªã¿è¾¼â¦
setlocale()ã§ãã±ã¼ã«ãè¨å®ããå¿ è¦ãåºãã®ã§ãCakePHPã®l10nã¨é£åããããã¨ãã¦ã¾ãããã ãæ®å¿µãªäºã«l10nã¨setlocale()ãä¸æããã¿åããè¡ãè©°ã¾ãã¾ããã ã¨ããããã®çµè« l10nããã¯'ja'ã'jpn'ãåå¾ã§ãã¾ããsetlocale()ã§ãã±ã¼ã«ãæ¥æ¬èªâ¦
CakePHPã® l10n ã®ã½ã¼ã¹ãèªãã§ãããããããããããã£ã¦ãã°ï¼ã£ã¦ã®ãããã¾ããããã°ãªãå ±åãããã¨ãããªãã§ããããããããã¨æã£ããã©ãããæé ãè¸ãã°è¯ãã®ããããããããããããããããä»æ§ãªã®ãããããªããææ§ãªãã®ã¨ããäºãâ¦
./cake -app /path/to/app/to/put bake [project]æ°ããCakePHPã¢ããªãä½ãéãappãã£ã¬ã¯ããªãã³ãã¼ããã«ãbakeã§ä½æãã¦ãã¾ããapp_controller.php ã app_model.php ãªã©ãä½æãã¦ããã¾ãããAPP/config/core.php ã® Security.salt 㨠Security.â¦
MAMPä¸ã§éçºãã¦ãCakePHPãã¼ã¹ã®ã¢ããªã§ããªãã¼ãããã¨èªã¿è¾¼ã¿ãæ©ããªãå ´åãããã¾ãããCakePHPã®ãã£ãã·ã¥ã®ä»çµã¿ãã¡ããã¨ææ¡ãã¦ãªãã£ãã®ã§ãããã©ã«ãã§ä½ãåãã¦ãã®ãã¨ãããããã¯MySQLå´ã®æ¹ãã¨ã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ãããç¹ã«æâ¦
CakePHP 1.2ã®äºã¯åããã¾ãããã1.3ç³»ã§ã¯HtmlHelperã§JavaScriptãViewãã³ãã¬ã¼ãã«æ¸ãã¦ããã¾ããscriptã¿ã°ãæ¸ãã¦ãè¯ãã®ããããã¾ããããHtmlHelperã使ã£ã¦æ¸ãããã¹ã¯ãªããããããã¡ã«è²¯ãã¦ãã㦠ã«ã¾ã¨ãã¦åºåãã¦ããã¾ããã¾ãæâ¦
CakePHP Advent Calendar 2010 8æ¥ç® http://cakephp.jp/modules/newbb/viewtopic.php?viewmode=flat&topic_id=2510&forum=16CakePHP Advent Calendar 2010ã®é çªãåã£ã¦ãã¾ããã8æ¥ç®ã®kanonjiã§ããæè¿ç«ã¦è¾¼ãã§ããã®ã§ãå®ã¯ã¿ããªã®è¨äºãä»æ¥èªã¿â¦
CakePHPã®ããªãã¼ã·ã§ã³ã¯ãåºæ¬çã«ãã¼ã¿ãã¼ã¹ã¸æ ¼ç´ããç´åã«ãããã®ã§ãã³ã³ããã¼ã©ã¼ã«å¦çãå ¥ãã¨ããã§ã®ãã§ãã¯ãæ°ã«ãªã£ã¦ãã¾ããã ãã©ã¦ã¶ããåãåã£ãå¤ããã¤ããªã»ã¼ããããªãé¢æ°ã§å¦çããã°ãNULLãã¤ãã¢ã¿ãã¯ãåããããâ¦
CakePHP 1.3.0ããå°ãå¤ãã£ã Prefix Routing ã§ã管çç»é¢ãæºå¸¯ãµã¤ããªã©ããã£ã¬ã¯ããªã§åããå¥ãµã¤ãã£ã½ãåºæ¥ã¾ãã ãã ãåãController/Modelã¯ã©ã¹ã使ãããconfigç³»ãå ±æãã¦ãã¾ãã å®æ ã¨ãã¦ã¯åããµã¤ãã®ä¸é¨ã¨ããæãã§ãã ããâ¦
CakePHP ã® HtmlHelper ã¯ãååã®éã html ãçæãã¾ãã Bakeræ¦ã®æµ ãèªåã¯ãä½ã§ html ãæ®éã«æ¸ããããããHelperãä»ããã®ããããåãããªãã£ãããã¾ãã ã§ããçµã¿è¾¼ã¿ã ããã©ãã CakePHP é¢é£ã®æ å ±ã調ã¹ã¦ãã¨ãHtmlHelper ã¯ä½¿ãã®ãâ¦
ãã©ã°ã¤ã³ãæ¡å¼µããæ¹æ³(how to extend a plugin) - cakephperã®æ¥è¨(CakePHP, Laravel, PHP) ã® @cakephper ããã® cakeplus plugin ã§ãã CakePHPã§ã®éçºã§è¯ã使ãæ©è½ãããã¤ãã¾ã¨ãããã©ã°ã¤ã³ã®æ§ã§ãã¡ãã£ã¨å ·ä½çã«ä½ãåºæ¥ãã®ãåãããªãâ¦
CakePHP 1.3.0ããPrefix Routingã®è¨å®æ¹æ³ãè¥å¹²å¤ããã¾ããã CakePHP 1.2ç³»ã¯ä½¿ã£ããã¨ãç¡ãã®ã§è¯ãç¥ãã¾ãããã1è¡ã§è¤æ°ã®Prefixãè¨å®ã§ããããã«ãªã£ãããã§ãã ãã¦ãBake 㧠View ã Controller ãç¼ããã¨ããã¨ãWould you like to creâ¦
CakePHP 1.3.0ãããAjaxHelperã¨JavascriptHelperãéæ¨å¥¨ã«ãªããJsHelperã¨HtmlHelperã使ãããã«å¤æ´ã«ãªãã¾ããã ã©ã¤ãã©ãªã®.jsãã¡ã¤ã«ã®èªã¿è¾¼ã¿ã¯ HtmlHelper->script() ã使ãã¾ãããGoogle AJAX Libraries APIããèªã¿è¾¼ãæ¹æ³ãCookbookã«â¦
ãã«ãã¦ã³ãã©ã¸ãªãã¿ã³ããã§ãã¯ããã¯ã¹ã¨ãããã¹ãå ¥åãçµã¿åããããã¡ãã£ã¨è¤éãªæ¤ç´¢ç»é¢ãä½ã£ã¦ããæã«ã¯ã¾ãã¾ããã ã»ã¨ãã©ããã©ã¼ã ã®å ¥åå¤ãANDæ¤ç´¢ããã ãã ã£ãã®ã§postConditions()ã使ã£ã¦ä½ã£ã¦ã¾ããã æ¤ç´¢ç»é¢ãªã®ã§GETã¡â¦
CSVããã¼ã¿ã½ã¼ã¹ã¨ãã¦æ±ããããã«ãã CsvSource ã¨ãããã©ã°ã¤ã³ãããã¾ãã ã³ã³ããã¼ã©ã¼ã® $uses ã«CSVã使ãã¢ãã«ãè¨å®ããããBake 㧠View ãç¼ãéã«ã¨ã©ã¼ãåºãããã«ãªã£ã¦ãã¾ãã¾ããã CsvSource ã¨ã¯ http://github.com/cakephp/datâ¦
CakePHP 1.3.0 ã§ã® Bake ã®åãã調ã¹ã¦ã¿ã¾ããã Cookbook ã£ã¦ cake ã³ã³ã½ã¼ã«ã Bake ã«ã¤ãã¦ãããã¾ãæ¸ãã¦ãªããã§ãããã Bakeã¯è²ã ã¨æ©è½ããããããªã®ã§ãã¾ãã¯æåã®ã¢ããªã±ã¼ã·ã§ã³ã®ã»ããã¢ããã¨ããã¼ã¿ãã¼ã¹è¨å®ã«ã¤ãã¦ã bake â¦
CakePHP 1.3.0 ãå¦ç¿ä¸ã«ããããããããã°ããï¼ã¨ããã®ã«ã¯ã¾ã£ãã®ã§ãããã°ã«æ¸ãã¦èª°ãã®ã¢ããã¤ã¹ãæå¾ ãããã¨ããè¨äºã§ãã ãã°ã£ã½ããªãã¨æãã¤ã¤ããCakePHPã¯æè¿ã¯ãããã°ããã§ãããããã°ãªã®ããèªåãä½ããééãã¦ãã®ã*1ã¡â¦