Re: paginating issue
basically is had to write a crazy array of data from one model based
on queries from another model to get things to work right...but tell
me thins
with a HABTM relationship you should be able to get the associated
data back in the same manner as the initial query correct?
im experiencencing an issue where I can get the related data but in
reverse I do not get the same type of results.
say i have post table with a join table and then a tag table...
I can get all posts ... and all tags from that post
but then when I try to go in reverse and get all tags and then all
posts with that tag...it doesnt bring them back in a fluid array. the
array is segmented one item at at time and not all in a collection...
therefore i had to manipultate the data in a way that would bring back
what I needed but it made an array and now I need to paginate it...
make sense?
On Jan 20, 7:22 am, "Ma'moon" <phpir...@gmail.com> wrote:
> Can you post a code sample for what you are trying to accomplish?
>
>
>
>
>
>
>
> On Thu, Jan 20, 2011 at 8:20 AM, OmniproX <devario...@gmail.com> wrote:
> > Hi all, I wanted to know, if you have ever run into this issue.
>
> > I know how to paginate a query from the controller fine.
>
> > But how do you paginate a custom array that you created and sent to
> > the view?
>
> > I used $array = $this->paginate(); and all it did was bring back all
> > of the items from the database from that model.
>
> > Even while typing that it gave me an idea as to what the issue could
> > be...but if you know of a way even if it is view only...please post.
> > i would love to see your suggestions :)
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
> >http://groups.google.com/group/cake-php
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home