changing Form input's contents from their default 'value'
Say I have a hasOne relationship between two Models, for instance Recipe hasOne User. If I set up the data (recipes contains a user_id field) and bake I will see a beautiful user id drop-down menu in the recipe add screen. The problem is that it displays the user_id, and not a bunch of usernames! Can I change this? For reference, here is some relevant code, and the html it outputs, //Views/add.ctp ... echo $this-Form-input('user_id'); which produces the following html: select name=data[Recipe][user_id] id=RecipeUserId option value=11/optionoption value=22/option ... The html I would prefer would be more like... select name=data[Recipe][user_id] id=RecipeUserId option value=1Robert/optionoption value=2Paulson/option ... Thanks for any help! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )
I had this same error message, what I had done was create a bunch of groups first, then deleted some. So there was no group with id=1. If you go to the db and check the group id's, those are the ones you should use to pupulate your ACL. -Rob On Thursday, October 29, 2009 2:08:22 AM UTC-7, Jeremy wrote: when I do Auth with cake , I happened a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 ) [CORE\cake\libs\model\db_acl.php, line 191] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.