HABTMã®ã¿ã°ã®çµè¾¼ã¿æ©è½ã®ã話 CakePHPã§ããããã¼ãã«ã«å¯¾ãã¦HABTMã§æãããã¿ã°ãçµãè¾¼ãã§è¡¨ç¤ºãããæ©è½ããæ£ã è¦å´ãã¦ãã£ã¨å®è£ ã§ããã®ã§ã¡ã¢ãã¦ããã¾ãã*1 説æã®ããã«CakePHPã®ããã°ãã¥ã¼ããªã¢ã«ã®ã¢ãã«ãããã«ç°¡ç¥åãã¦ããããå ã«èª¬æãã¦ã¿ã¾ãã Model è¦ç´ã«å¾ã£ã¦ããã°å¿ è¦ã®ç¡ãããããã£ãè¨äºã«æ±ç¨æ§ãæãããããã«æ¸ãã¦ããã¾ããã è¨äºãã¼ãã« ãã¼ãã«ï¼posts ã¢ãã«ï¼Post ãã£ã¼ã«ãï¼id, article, created, modified*2 class Post extends AppModel { var $name = "Post"; var $useTable = "posts"; // è¦ç´ã«å¾ãã°ãããªã // è¦ç´ã«å¾ãã°$hasAndBelongsToMany = array("Tag");ã§OK va
{{#tags}}- {{label}}
{{/tags}}