Page 388 of 211,272, showing 20 records out of 4,225,435 total, starting on record 7,741, ending on 7,760
# | Username | Text | |
---|---|---|---|
# | Aug 9th 2008, 18:07 | TommyO | jezek: yes. like: if ($this->params['admin']) |
# | Aug 9th 2008, 18:08 | jezek | ... |
# | Aug 9th 2008, 18:08 | jaredhoyt | are you using admin routing or just protecting certain controllers or actions |
# | Aug 9th 2008, 18:08 | jezek | and i need a login form, etc.. |
# | Aug 9th 2008, 18:08 | jezek | admin routing |
# | Aug 9th 2008, 18:08 | jaredhoyt | jezek: why not let AuthComponent take care of some of this |
# | Aug 9th 2008, 18:08 | jaredhoyt | jezek: is it simple access control... or are there different levels of users |
# | Aug 9th 2008, 18:08 | tomas- | how do i go about performing ajax operations (loading content via ajax) when the page loads? I am implementing content (such as a photo album) that is ajax updateable, i thought i could just load it via ajax when the page originally loads |
# | Aug 9th 2008, 18:09 | jezek | no different levels |
# | Aug 9th 2008, 18:09 | jaredhoyt | multiple levels, or just admin and user |
# | Aug 9th 2008, 18:09 | TommyO | like: AppController::isAuthorized() { if ($this->params['admin'] andand !$this->Auth->user('admin')) { return false; }} |
# | Aug 9th 2008, 18:09 | jezek | admin and user |
# | Aug 9th 2008, 18:09 | jaredhoyt | jezek: if it's just admin and users, the above is the best solution ^^ |
# | Aug 9th 2008, 18:09 | jezek | well not user yet |
# | Aug 9th 2008, 18:10 | jezek | ok |
# | Aug 9th 2008, 18:10 | jezek | i don't really knoe how to use it, but i guess i'll learn |
# | Aug 9th 2008, 18:10 | jaredhoyt | and add Auth->authorize = 'controller' to your beforeFilter() |
# | Aug 9th 2008, 18:10 | jaredhoyt | jezek: AuthComponent is very simple :D |
# | Aug 9th 2008, 18:10 | jezek | ok |
# | Aug 9th 2008, 18:10 | jaredhoyt | Acl on the other hand... |