I'm new with cake php, but i have a problem that i can't fix...
Can i somehow sort data that gets by this attribute?
i'm getting that array
*array(
(int) 0 => array(
'Category' => array(
'id' => '3',
'name' => 'Материал',
'order' => '1'
),
'Type' => array(
(int) 0 => array(
'id' => '4',
'categorie_id' => '3',
'name' => 'дерево',
'order' => '3'
),
(int) 1 => array(
'id' => '5',
'categorie_id' => '3',
'name' => 'пвх',
'order' => '2'
),
(int) 2 => array(
'id' => '6',
'categorie_id' => '3',
'name' => 'шпон',
'order' => '1'
)
)
),
(int) 1 => array(
'Category' => array(*
.....
so the question is - can i sort '*Type*' array by the field '*order*'?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.