Re: one or two parameters

2009-03-14 Thread Miles J
Well I went over the ticket component and it all looked correct. Still a bit confused on what your general question is. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send emai

Re: one or two parameters

2009-03-14 Thread Delirium tremens
The lines I mentioned aren't immediately separated. On 14 mar, 02:55, Miles J wrote: > In the link you sent me, that code isn't even existent. This is > however: > > // uses the ticket to reset the password for the correct user. >     function password($hash = null) >     { >         if ( $email

Re: one or two parameters

2009-03-13 Thread Miles J
In the link you sent me, that code isn't even existent. This is however: // uses the ticket to reset the password for the correct user. function password($hash = null) { if ( $email = $this->Tickets->get($this->params['controller'], $hash) ) { --~--~-~--~~-

Re: one or two parameters

2009-03-13 Thread Delirium tremens
The get function is defined with one parameter ($ticket), then it is called with two parameters ($this->params['controller'] and $hash). How come that is right??? On 13 mar, 18:10, Miles J wrote: > Yes? Theres nothing wrong with that code. --~--~-~--~~~---~--~~ Yo

Re: one or two parameters

2009-03-13 Thread Miles J
Yes? Theres nothing wrong with that code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

one or two parameters

2009-03-13 Thread Delirium tremens
I found these two lines function get($ticket = null) if ( $email = $this->Tickets->get($this->params['controller'], $hash) ) at http://bakery.cakephp.org/articles/view/ticket-component-resetting-user-passwords Are they right??? --~--~-~--~~~---~--~~ You received