THAT WORKED!!!! Thank you very much. (it does still work odd in localhost, where it keeps adding /1/1/ ) but at least it works on the actual server. Have a good day.
On Mar 11, 12:36 am, Martin Westin <martin.westin...@gmail.com> wrote: > I'd say that your server is doing things correctly and your local > setup is acting strange. To get any arguments to persist when > paginator creates it's links you need to do this in your view: > > $paginator->options(array('url' => $this->passedArgs)); > > Since you mention nothing about it my guess is that you don't have it > and that for some unknown reason your local setup keeps it around > anyway. > > /Martin > > On Mar 11, 4:22 am, bee <byrne.chri...@gmail.com> wrote: > > > > > This is very odd, when i upload my code from my local machine to my > > server, and test out the Paginator on the remote server, the URL is > > incorrectly rendered for the paginator, page 2 on the remote server. > > > Onlocalhost, the url for page 2 of my query works properly and > > displays this:http://localhost/.../.../findChildren/1/page:2 > > > However, when I upload to the server, the "/1/" does NOT appear page 2 > > link. > > Instead,http://www.mywebsite.com/.../findChildren/page:2 > > > The code I use for paginator VIEW is below: (it is EXACTLY THE SAME > > for both thelocalhostand the server) > > > echo $paginator->numbers(); > > > The code in the controller is as follows: > > var $paginate = array( > > 'limit' => 4 , > > 'order' => array( > > 'Event.name' => 'asc' > > ) > > ); > > > function findChildren($id=null) > > { > > > $events = $this->paginate('Event', array('category_id' => > > $id) ); > > $this->set('events',$events); > > > } > > > So, it is strange, because i NEVER wrote the code for the path of URL, > > so this must be a setting somewhere in the config? > > I am a newbie, so please excuse me for my confusion and ignorance. > > I appreciate your help in advance. > > Thanks > > Christy- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~----------~----~----~----~------~----~------~--~---