CakePHP 1.2.2ãå©ç¨ãã¦ã¾ãããã®è©±ã¯1.2ã ã£ããã©ãã§ãé©ç¨ã§ããã¨æãã¾ãï¼cake1.1ã¯åããã¾ããï¼ ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ CakePHP2ã§ããã°ãModel::query()ããæ¬ä¼¼bindã§ã¯ãªãPrepared Statementã§SQLçºè¡ããã®ã§å®å¿ã§ã http://d.hatena.ne.jp/cakephper/20120204/1328324327 ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ éè¨ç¨SQLãªã©ãSQLãè¤éã«ãªã£ããããå ´åããSQLæãç´æ¥æ¸ããã»ããéçºå¹çãä¸ããåæã«é¢ãã¦ã¯ãModel::query()ãå©ç¨ãã¦ãä¸è¨ã®ããã«ç´æ¥SQLæãçºè¡ãã¦ã¾ãã $this->Model->query("SELECT `Post`.`id` FROM `posts` AS `Post` WHERE `Post`.`id`
ãã®Matt S. Troutæ°ã®æ¸ãã¨ãã»ã¤ããã®ã¨ããå ¨ãç¦æ¢èªä¸ã¤ç¡ããæèªè ã§ããç§ããè¦ãã°å¬ãããããè¥å¹²ã®å¯ãããï¼æ¬å½ã«åæã ãªãï¼æãã¾ããå¤åãã¯ãªã¹ãã¹ã·ã¼ãºã³ã ã£ããããèªç²ããã¦ããã®ã§ã¯ãªããããã¨æ¨å¯ãã¾ãã ã¨ããã§ãå¹´å£ã®å ¥ã£ãPerlerã§ãæå¤ã«ç¥ããªããã®ã«ãgoto &subãããã¾ããããã¯AUTOLOADã§ä½¿ããããã確ãå¼¾ãããèªèº«ã®ããã°ã§è§£èª¬ããã¦ããããã«ãè¨æ¶ãã¦ãã¾ãããç¥ã£ã¦ãã¦æã¯ãããã¾ãããã¨è¨ãããPerlerã¨èªç§°ãããªãã°ããããããç¥ã£ã¨ãã¨è¨ããããããã§ãã Mattæ°ã®æè¿ã®ã¨ãã»ã¤ã¯ãã®gotoã親åã«ãâGoto considered usefulâã§è§£èª¬ãã¦ããã¾ãããã®ç§è¨³ã以ä¸ã«è¼ãã¦ããã¾ãã Gotoã¯æç¨ã§ãã 2009å¹´12æ26æ¥ Matt S. Trout éããããã®gotoã§ãªãã¦ãå¥
以åã®è¨äºã§è©¦ãã«ä½¿ã£ã¦ã¿ãTwigã§ããããããZend Frameworkã®æ¨æºã®Viewã«ããããªï¼ã¨ãããã¨ã§ãã£ã¦ã¿ã¾ããã ã¨ããããã°ã®è¨äºãåèã«ãã¦çµã¿ä¸ãã¦ããã®ã§ãè¥å¹²ãã¯ãªãå ¥ã£ã¦ãã¾ãã ããããªããã 注æäºé ãã®è¨äºãæ¸ããæç¹ã§å©ç¨ãã¦ããããããã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã®ã¨ããã§ãã Zend Framework 1.10.0 alpha 1 Twig 0.9.5 DEV ä»å¾ã®ãã¼ã¸ã§ã³ã¢ããã«ãã£ã¦åä½ã«ä½ãããéããåºãã¨æãã¾ãã®ã§ãã注æãã ããã ä¸æºå ã¾ãã¯ãZend Frameworkã§Twigãå©ç¨ããããã®ä¸æºåãè¡ãã¾ãã ããã¸ã§ã¯ããä½ã ã¾ãã¯ãé©å½ã«ããã¸ã§ã¯ããä½ãã¾ãã ããã¸ã§ã¯ããã¡ã¤ã«ãã§ããããlibraryããã©ã«ãã«ãMyããã©ã«ããä½ã£ã¦ããã¾ãã 次ã«ä»¥åã®è¨äºã¨åæ§ã«Twigããã¦ã³ãã¼ããã¾ãã ãã¦ã³
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}