CakePHP ã«ã¯å¤é¨ã®ãªã½ã¼ã¹ãå¼ã³åºãããã®ä¾¿å©ãªãã¬ã¼ã ã¯ã¼ã¯ããããDataSource ãå®è£ ããã°ããã¼ã¿ãã¼ã¹ä»¥å¤ã®ãªã½ã¼ã¹(ãã¨ãã°ããã¹ããã¡ã¤ã«ãªã©)ãã¢ãã«ã¨ãã¦å©ç¨ã§ããããã«ãªãã http://d.hatena.ne.jp/gapao/20090521/1242907727 ãåèã«ãé åãã¢ãã«ã¨ãã¦å®ç¾©ããããã® DataSource ãä½ã£ã¦ã¿ããä¸è¨ã® ArraySource ãå©ç¨ãããã¨ã§ã¢ãã«å ã«å®ç¾©ããé å $values ã®å¤ã find() é¢æ°ã§åãåºãããå®ç¨çã¨ã¯ãããªããããããªãããä½ãè¾¼ãã§ãã£ããé¢ç½ããã®ãã§ããããªæ°ãããã models/datasources/array_source.php: <?php class ArraySource extends DataSource { function calculate
{{#tags}}- {{label}}
{{/tags}}