Re: Paginator localhost vs. remote server URL generates differently.
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 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 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 -~--~~~~--~~--~--~---
Paginator localhost vs. remote server URL generates differently.
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. On localhost, 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 the localhost and 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 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How did they do that?
Great! I have just started exploring the AJAX Helper yesterday. Thank you. On Jan 21, 7:45 am, Nate wrote: > It's all jQuery, as written by Marc Grabanski. Check > outhttp://cakephp.org/js/common.js > > On Jan 20, 11:13 pm, bee wrote: > > > Hi I am a newbie to cakephp and I am dying to know how to implement > > one of the main menus on cakephp main page: > > I have cakephp setup and have implemented one site. Now, I am trying > > out advanced features (ajax, etc) > > > So, my question is: > > Onhttp://cakephp.org/atthe top portion of the page, a menu lists: > > (it is almost flash like) > > > Get It Now > > Hot Features > > Learn > > Interact > > ... > > > with two arrows allowing the user to quickly move to the next section > > to read. > > > That is cool. I want to do that Please let me know the best way to > > implement this! > > Thanks, > > Christy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How did they do that?
Hi I am a newbie to cakephp and I am dying to know how to implement one of the main menus on cakephp main page: I have cakephp setup and have implemented one site. Now, I am trying out advanced features (ajax, etc) So, my question is: On http://cakephp.org/ at the top portion of the page, a menu lists: (it is almost flash like) Get It Now Hot Features Learn Interact ... with two arrows allowing the user to quickly move to the next section to read. That is cool. I want to do that Please let me know the best way to implement this! Thanks, Christy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---