Thanks, both. I'm kicking myself because I did see something about
this a while back.

Yes, it's complaining about all three. Strange.

This is one Cake convention I really hate. Variable names should never
be camel-cased, IMHO. Ugh!


On Tue, Apr 7, 2009 at 3:16 PM, John Andersen <[email protected]> wrote:
>
> Does the view complain about all the variables or only about
> volume_nodes?
>
> For $this->set is stated that when using an associative array, as
> compact will make, the names will be inflected, resulting in
> volume_nodes becomes volumeNodes.
>
> Enjoy,
>   John
>
> On Apr 7, 8:50 pm, brian <[email protected]> wrote:
>> I noticed this a few days ago but never got around to looking into it
>> further. I've just run into it again and can't find where things are
>> going wrong.
>>
>> In my action, I have the following:
>>
>> $this->set(compact('group', 'aro', 'volume_nodes'));
>>
>> The View complains that all of these are undefined. So, I do this:
>>
>> $this->set('group', $group);
>> $this->set('aro', $aro);
>> $this->set('volume_nodes', $volume_nodes);
>>
>> And everything is swell. Being a convenience, I'm not too put out by
>> this, but it seems really strange and possibly a bug. Poking around in
>> the source hasn't turned up anything obvious and I don't see anything
>> on Trac. Does anyone have an idea why this is failing?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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