Re: FormHelper field names for related model

2011-10-28 Thread handsofaten
This was a bug that is resolved in the latest version on github. See the ticket for more information. On Oct 28, 10:22 am, handsofaten wrote: > I went ahead and submitted a ticket for this, I guess I'll stop using > FormHelper for these fields until I get some resolution on this issu

Re: FormHelper field names for related model

2011-10-28 Thread handsofaten
27 am, handsofaten wrote: > In Cake 1.3, it would generate fields like this: > > id="Author0Name"> > > But in Cake 2.0, I'm getting: > > id="AuthorAuthor"> > > Which doesn't handle multiple fields properly. Anyone know what might >

FormHelper field names for related model

2011-10-21 Thread handsofaten
I'm migrating to CakePHP 2.0, and run into this problem with the FormHelper. I have a Book model and a related Author model: var $uses = array('Book', 'Author'); I'm creating an autocomplete field for Author in the Book edit form, which will look for existing author names. In the beforeSave() fun

Cake 2.0 beta: FormHelper + HABTM fields

2011-08-12 Thread handsofaten
Hi - I'm working with CakePHP 2.0 beta, and having some trouble with the expected FormHelper functionality. I have in my view something like this: $i = 0; foreach($terms as $term){ echo $this->Form->input('Term.'.$i.'.id'); $i++ } >From which I expect something like this to be generated: .

CakePHP 2: Indirect modification of overloaded property ... has no effect

2011-08-01 Thread handsofaten
Continuing to work through migrating to Cake2, I'm hitting this error. The code would be something like: $this->data['User']['password'] = AuthComponent::password($this- >data['User']['password']); The error: Indirect modification of overloaded property UsersController::$data has no effect In a

Re: CakePHP 2 beta migration issues

2011-08-01 Thread handsofaten
Thanks, this helps a lot. On Jul 30, 6:03 pm, José Lorenzo wrote: > The most recent update to the book broke that link, it is > nowhttps://github.com/cakephp/docs/blob/master/en/core-libraries/compone... > > I will update the link in the lighthouse, thanks for reporting! -- Our newest site for

CakePHP 2 beta migration issues

2011-07-30 Thread handsofaten
Hi- I've been starting to move a 1.3 site into 2.0 beta, and run into some migration issues I'm hoping folks here can help with. AuthComponent has been changed quite a bit, and as far as I can tell there is absolutely no documentation of this. I saw a link from Mark Story on this list, but it lead

Re: Passing variables to the layout.

2008-05-27 Thread handsofaten
This works for views, but is it possible to pass variables to layouts? I don't see anything about this in the docs, other than the standard $title_for_layout and $content_for_layout. Thanks. On Apr 16, 1:42 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > in the controller > $testArr