hi luke,

I have experienced exactly the same problem on the same tutorial.
Try replacing a function view() in acl.php with the latest version in
trunk.

https://trac.cakephp.org/browser/trunk/cake/1.1.x.x/cake/scripts/acl.php#L341

(and the old one for your reference.)
https://trac.cakephp.org/browser/tags/1.1.12.4205/cake/scripts/acl.php#L338

I hope you can sleep well tonight ;-)

-Yoshihiro

On 1月28ζ—₯, 午後7:15, "lukemack" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm following this tutorial:
>
> http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake2.html
>
> and have a problem with creating AROs. The tutorial walks through
> creating two AROs:
>
> phpacl.phpcreate aro 0 null Users
> phpacl.phpcreate aro 0 null Dealers
>
> however, using that command gives the following error:
>
> There was an error creating the Aro, probably couldn't find the parent
> node.
>  If you wish to create a new root node, specify the <parent_id> as
> '0'.
>
> I therefore did phpacl.phpcreate aro 0 0 Users and the same for
> Dealers
>
> My users_controller.php contains a register function which contains:
>
>           $aro = new Aro();
>           $aro->create($this->User->id, 'Users', $this->data['User']
> ['username']);
>
> However. when Iviewthe AROs usingacl.php....
>
> [EMAIL PROTECTED]:/var/www/cake/scripts$ phpacl.phpviewaro 0
> Aro tree:
>
> ------------------------------------------------
>
> [1]Users
>
> [2]Dealers
>
> ------------------------------------------------
>
> my created user does not appear below [1] users as suggested by the
> tutorial.
>
> Can anyone suggest what I am doing wrong? One thing I have noticed is
> that in the aros table in mysql, the line representing the user I have
> created has a different foreign key value (4) as compared to the Users
> and Dealers which have a value of 0.
>
> many thanks for any help,
>
> lukemack.


--~--~---------~--~----~------------~-------~--~----~
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