I think that can be handled by the Set class. I am not sure if find
does use that one but you can use it to get the same kind of results.
If you look at a class like Configure, you can do Configure::read
('Some.dot.path') and get back the data from the equivalent array
position. In there it is done right there, in a limited way, to speed
things up I guess.
/Martin
On Jun 26, 3:18 pm, Ernesto <[email protected]> wrote:
> i'm looking for the CakePHP's built-in function that converts dot-
> separated strings (such as "Order.Code") to multi-level arrays like
> this
>
> Array(
> [Order] => Array => (
> [Code]
> )
> )
>
> this function is used to parse the data posted from views
>
> i can't find it!! T_T
>
> On 26 Giu, 13:46, Eric Silva <[email protected]> wrote:
>
>
>
> > $array["Model"]["*f*ield"] ??
>
> > --
> > Eric Silva
>
> > On Fri, Jun 26, 2009 at 8:37 AM, Ernesto <[email protected]> wrote:
>
> > > Hello
>
> > > i can't find the CakePHP's built-in function that does "Model.Field"
> > > to $array["Model"]["Field"]
>
> > > i'll use that function in a Helper.
>
> > > is that correct?
>
> > > better ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---