Hello GUYS.
This is a paginated array, and I want to get just pictures whom r in
iPhone category by a supplying a complexe search/filter condition to
the cake paginator.

I tried some random stuff like :
$this->paginate = array('Game'=>array('Category'=>array('conditions'
=> array( 'Category.name' => 'iPhone'))));

but it's not Working... !!!
Some help guys, I'm stuck :(

Thx in advance=)



Pictures

Array
(
    [0] => Array
        (
            [Picture] => Array
                (
                    [id] => 1
                    [name] => Image_15.png
                    [type] => image/png
                    [size] => 328004
                    [filesize] => 320 KB
                    [ext] => png
                    [group] => image
                    [path] => /files/iPhone/Image_15.png
                    [created] => 2010-08-02 16:19:33
                    [modified] => 2010-08-02 16:19:33
                    [type_id] => 30
                )

            [Type] => Array
                (
                    [id] => 30
                    [type] => Ecran d'attente
                    [created] => 2010-07-30 17:40:32
                    [modified] => 2010-07-30 17:40:32
                    [Picture] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 1
                                    [name] => Image_15.png
                                    [type] => image/png
                                    [size] => 328004
                                    [filesize] => 320 KB
                                    [ext] => png
                                    [group] => image
                                    [path] => /files/iPhone/
Image_15.png
                                    [created] => 2010-08-02 16:19:33
                                    [modified] => 2010-08-02 16:19:33
                                    [type_id] => 30
                                )

                            [1] => Array
                                (
                                    [id] => 2
                                    [name] => Coucher_de_soleil.jpg
                                    [type] => image/jpeg
                                    [size] => 71189
                                    [filesize] => 70 KB
                                    [ext] => jpg
                                    [group] => image
                                    [path] => /files/Web/
Coucher_de_soleil.jpg
                                    [created] => 2010-08-02 16:59:53
                                    [modified] => 2010-08-02 16:59:53
                                    [type_id] => 30
                                )

                        )

                )

            [Game] => Array
                (
                    [0] => Array
                        (
                            [id] => 6
                            [game_name] => Game iPhone
                            [start_date] => 2010-07-31 14:25:00
                            [end_date] => 2010-07-31 15:25:00
                            [category_id] => 4
                            [created] => 2010-07-31 14:25:37
                            [modified] => 2010-08-02 16:06:37
                            [GamesPicture] => Array
                                (
                                    [id] => 19
                                    [game_id] => 6
                                    [picture_id] => 1
                                )

                            [Category] => Array
                                (
                                    [id] => 4
                                    [name] => iPhone
                                    [created] => 2010-07-30 17:17:00
                                    [modified] => 2010-07-30 17:17:00
                                )

                            [Present] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 10
                                            [game_id] => 6
                                            [name] => Header.bmp
                                            [type] => image/bmp
                                            [size] => 3133494
                                            [filesize] => 3 MB
                                            [ext] => bmp
                                            [group] => image
                                            [path] => /files/iPhone/
Header.bmp
                                            [description] => ref
                                            [created] => 2010-07-31
14:25:56
                                            [modified] => 2010-07-31
14:25:56
                                        )

                                )

                        )

                )

        )

    [1] => Array
        (
            [Picture] => Array
                (
                    [id] => 2
                    [name] => Coucher_de_soleil.jpg
                    [type] => image/jpeg
                    [size] => 71189
                    [filesize] => 70 KB
                    [ext] => jpg
                    [group] => image
                    [path] => /files/Web/Coucher_de_soleil.jpg
                    [created] => 2010-08-02 16:59:53
                    [modified] => 2010-08-02 16:59:53
                    [type_id] => 30
                )

            [Type] => Array
                (
                    [id] => 30
                    [type] => Ecran d'attente
                    [created] => 2010-07-30 17:40:32
                    [modified] => 2010-07-30 17:40:32
                    [Picture] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 1
                                    [name] => Image_15.png
                                    [type] => image/png
                                    [size] => 328004
                                    [filesize] => 320 KB
                                    [ext] => png
                                    [group] => image
                                    [path] => /files/iPhone/
Image_15.png
                                    [created] => 2010-08-02 16:19:33
                                    [modified] => 2010-08-02 16:19:33
                                    [type_id] => 30
                                )

                            [1] => Array
                                (
                                    [id] => 2
                                    [name] => Coucher_de_soleil.jpg
                                    [type] => image/jpeg
                                    [size] => 71189
                                    [filesize] => 70 KB
                                    [ext] => jpg
                                    [group] => image
                                    [path] => /files/Web/
Coucher_de_soleil.jpg
                                    [created] => 2010-08-02 16:59:53
                                    [modified] => 2010-08-02 16:59:53
                                    [type_id] => 30
                                )

                        )

                )

            [Game] => Array
                (
                    [0] => Array
                        (
                            [id] => 5
                            [game_name] => Game1
                            [start_date] => 2010-07-30 17:17:00
                            [end_date] => 2010-07-31 17:17:00
                            [category_id] => 3
                            [created] => 2010-07-30 17:17:30
                            [modified] => 2010-07-30 17:17:30
                            [GamesPicture] => Array
                                (
                                    [id] => 20
                                    [game_id] => 5
                                    [picture_id] => 2
                                )

                            [Category] => Array
                                (
                                    [id] => 3
                                    [name] => Web
                                    [created] => 2010-07-30 17:16:52
                                    [modified] => 2010-07-30 17:16:52
                                )

                            [Present] => Array
                                (
                                )

                        )

                )

        )

)


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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