Hi guys, Im having a small issue here.  

I have a model1 that HABTM model2

before I send the results to the view via a set, I run a foreach loop grab 
the first bit of results and then another to get to the associated data.

the data array at that point (associated data only is  being sent to the 
view) looks like the following.

Array
(
    [0] => Array
        (
            [data] => xxx
            [data] => xxxxxxxxxxxxxx
            [data] => xxxxxxx
            [data] => 
            [data] => xxxxxxxxxxxx
            [data] => xxxxxxxxxx
           
            [jointable] => Array
                (
                    [data] => x
                    [data] => xxx
                    [data] => xxxx
                )

        )

    [1] => Array
        
       (
            [data] => xxx
            [data] => xxxxxxxxxxxxxx
            [data] => xxxxxxx
            [data] => 
            [data] => xxxxxxxxxxxx
            [data] => xxxxxxxxxx
           
            [jointable] => Array
                (
                    [data] => x
                    [data] => xxx
                    [data] => xxxx
                )

        )

etc etc...so basically I am only brining back the associated model's info to 
the view...but how do i paginate this???  I already tried using 

$this->paginate('model', array( bla blabalbala during the original call

on the top of the controller I have var $paginate with some conditions

and in the $this->set I have $this->paginate($this->Model->associatedModel)

still no pagination on the view (and I have pagination on other pages with 
the same view code...how do i modify or what do i do in the controller to 
get this to paginate?

Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to