Re: CakeFest IV - America - Help us pick a location!
Is Texas too far down there to be considered Central? On Nov 12, 9:43 pm, Graham Weldon wrote: > Hi all, > > The CakePHP team has been considering the location for the next > upcoming CakeFest. > We've decided to bring it back home to the United Sates of America. > Thus far we haven't chosen a location for the event, but to ensure we > reach as many people as possible, we'd like your opinion on where we > should host the event. > > Essentially, our choices are: > - USA East Coast > - USA West Coast > - USA Central > > If I have missed another location that you feel might be more popular > or accessible to interested attendees, feel free to suggest it. > We're keen to hear peoples thoughts on it. > > Cheers, > > Graham Weldon (AKA: Predominant) > > e. gra...@grahamweldon.com > w.http://grahamweldon.com -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@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=.
Re: Woes of ACL
Unfortunately that did not work for me. I ended up using the check() method in my app_controller to determine access: var $userId = null; function beforeFilter() { if (null != ($this->userId = $this->Auth->user('id'))) { // what user is trying to access $page = $this->params['controller'] . '/' . $this->params ['action']; // check if user can access page. if (!$this->Acl->check(array('User' => $this->userId), $page)) $this->Redirect->flashWarning('You do not have access to this page.', array('controller' =>'pages', 'action' => 'unauthorized')); } } Where Redirect->flashWarning is a flash/redirect method in my own RedirectComponent. Everything seems to work just fine. Is there a reason I shouldn't use this method? Trevor On Apr 6, 5:38 am, "Dave Maharaj :: WidePixels.com" wrote: > In your controllers do you have something like: > > function beforeFilter() > { > parent::beforeFilter(); > > $this->Auth->allowedActions = array('register', 'index');// allow > public access to these only > $this->Auth->autoRedirect = true; > } > > Dave > > > > -Original Message- > From: trevorsg [mailto:trevo...@gmail.com] > Sent: April-06-09 2:07 AM > To: CakePHP > Subject: Woes of ACL > > Hey guys, > > I've been trying to solve an issue with ACL for two days now, but I just > can't find any answers. > > Basically I'm trying to set up an application to work with Auth and Acl. I > followed the tutorials in the Cookbook - I created the database tables, all > of the ACOs and AROs are created. Then, I ran a deny for a particular user > on the root node. But no matter what I do, every user has access to all > parts of the application. > > I have started this app from scratch twice, and I get the same outcome each > time. I think there is something fundamental that I'm missing. > The AclComponent::check() method returns the proper boolean value for > ARO/ACO pairs that I pass to it, but still users are never denied access to > any parts of the site. > > Hopefully someone here can give me a steer in the right direction. I am > happy to provide code or extra information if needed. > > Thanks very much for any help! > > Cheers, > Trevor --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Woes of ACL
Hey guys, I've been trying to solve an issue with ACL for two days now, but I just can't find any answers. Basically I'm trying to set up an application to work with Auth and Acl. I followed the tutorials in the Cookbook - I created the database tables, all of the ACOs and AROs are created. Then, I ran a deny for a particular user on the root node. But no matter what I do, every user has access to all parts of the application. I have started this app from scratch twice, and I get the same outcome each time. I think there is something fundamental that I'm missing. The AclComponent::check() method returns the proper boolean value for ARO/ACO pairs that I pass to it, but still users are never denied access to any parts of the site. Hopefully someone here can give me a steer in the right direction. I am happy to provide code or extra information if needed. Thanks very much for any help! Cheers, Trevor --~--~-~--~~~---~--~~ 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: What do ARO and ACO stand for?
ARO - access request object ACO - access control object. On Apr 5, 1:56 pm, bearlee wrote: > It a novice quesiton, but these acronyms bother me if I don't know > what they mean (my pet-peeves). > > What do ARO and ACO stand for? > > -Brian --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Acl Not Denying Users
Hey guys, I hope someone can give me some hints; this problem has had me stumped for quite some while now. I'm sort of new to CakePHP. I'm trying to set up my own application using ACL. I've read all of the tutorials at the Cookbook, and I'm pretty sure I followed them correctly. I have my database set up properly with AROs, ACOs, and aros_acos. When I use the AclComponent::check() method to test permissions, the correct boolean value is returned. I created a test user and denied permissions to the root ACO node. However, when I log in with that user, I still have full permissions to do everything: add, edit, view, etc. It's as if ACL is not there at all. The AuthComponent is also being used, and everything seems to be working fine with that. Does anyone have any suggestions or questions about my problem? Any help is, of course, greatly appreciated. Cheers. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Easily Validate Cake Models
Hello, I've been working on something for the last week or so that I think will make everyone's Cake development easier. To me, the most frustrating part of starting a new Cake application is going through each model and writing out the $validate array. Therefore, I created php script that helps you actually write the $validate array so that it's minimal work on your part. It's fairly self-explanatory how it works. Just type out your field names and select the validation rules you want. When you click submit, PHP will output a text page that contains the $validate array. You can then simply copy this array to your Cake model and move on with life I spent absolutely zero time on look and feel, so don't be disappointed that I haven't used pretty colors and rounded corners. It does its job, and (if I do say so myself) it does it quite well. The script is here: http://javavideotutes.com/oldsite/temp/cakemvalidate/ Please note that I have only tested this with Google Chrome. Please post replies if you find any bugs (I'm sure there are a few). The source PHP (approx 650 lines) can be viewed here: http://javavideotutes.com/oldsite/te.../index.php.txt Let me know what you think! Cheers, Trevor --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---