Page 392 of 211,273, showing 20 records out of 4,225,447 total, starting on record 7,821, ending on 7,840
# | Username | Text | |
---|---|---|---|
# | Aug 9th 2008, 19:26 | Spoom | hi folks, i'm trying to set up ajax paging in cake using the paginator, and it works fine without ajax, but when i turn on ajax, it starts giving me 403 forbidden errors on clicking a page link, i'm following http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 , any ideas? |
# | Aug 9th 2008, 19:27 | Spoom | the pages that are referred to in the error work fine if i copy and paste them into the address bar |
# | Aug 9th 2008, 19:27 | Spoom | the 403 forbidden shows up in the ajax div so at least part of it is working |
# | Aug 9th 2008, 19:28 | Jezek | i know it must be a simple task |
# | Aug 9th 2008, 19:29 | Spoom | i just don't understand why it gives forbidden errors when the pages themselves are being accessed fine |
# | Aug 9th 2008, 19:38 | Matt1 | Jezek: you could test for admin prefix on the appController:beforeFilter |
# | Aug 9th 2008, 19:38 | kalileo | Jezek: have you setup your authentication to allow some pages already? |
# | Aug 9th 2008, 19:39 | Jezek | no i haven't |
# | Aug 9th 2008, 19:39 | Spoom | apache error log gives no clues, it just shows a 404 on accessing the 403.shtml error page |
# | Aug 9th 2008, 19:39 | Jezek | but if i add var $components = array('Auth'). it redirects to the login page, no matter what i put in beforeFilter |
# | Aug 9th 2008, 19:40 | Spoom | $this->Auth->allow ? |
# | Aug 9th 2008, 19:40 | kalileo | Jezek: then do that, allowing the action if it is not an admin action, Matt1 points you to a way to decide if admin or not |
# | Aug 9th 2008, 19:40 | Jezek | $this->Auth->allow = array('*'); |
# | Aug 9th 2008, 19:41 | kalileo | Jezek: you just said you have not allowed any page, thus you will be stuck at the login page forever ;) |
# | Aug 9th 2008, 19:41 | Jezek | doesn't that allow any page? |
# | Aug 9th 2008, 19:44 | kalileo | Jezek: dunno, never used the wildcard. I found that it was helpful to allow specific actions, such as display |
# | Aug 9th 2008, 19:44 | kalileo | (assuming you use auth in controller mode) |
# | Aug 9th 2008, 19:45 | Jezek | but i have so many different action names. and i dont want to have to add a new action to the list everytime i create one |
# | Aug 9th 2008, 19:46 | Spoom | raw access log shows this: 71.74.111.184 - - [09/Aug/2008:20:55:13 -0400] "POST /questionnaire/questionnaire/questions/index/page:2 HTTP/1.1" 403 - "http://jamiearseneault.com/questionnaire/questionnaire/questions/index/page:1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008062009 (Gentoo) Firefox/3.0" |
# | Aug 9th 2008, 19:47 | Jezek | but it keeps redirecting me |