On Feb 9, 3:49 pm, Josoroma <[EMAIL PROTECTED]> wrote:
> If i have the next groups table:
>
> DROP TABLE IF EXISTS `bm_groups`;
> CREATE TABLE `bm_groups` (
>   `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
>   `name` varchar(60) DEFAULT NULL,
>   `parent_id` int(11) NOT NULL,
>   PRIMARY KEY  (`id`)
> ) AUTO_INCREMENT=8;
>
> INSERT INTO `bm_groups` (`id`, `name`, `parent_id`) VALUES
> (1, 'Everybody', 0),
> (2, 'Contributor', 1),
> (3, 'Author', 2),
> (4, 'Editor', 3),
> (5, 'Moderator', 4),
> (6, 'Manager', 5),
> (7, 'Administrator', 6);
>
> How can i print in a form view the indented select using cakephp find
> method?
>
> Thanks in advance.

See generateTreeList in 1.2 (and it's db requirements) or "DIY". The
logic/code shown here might also be useful: 
http://bakery.cakephp.org/articles/view/tree-helper-1

hth,

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to