ACL clarification
Hi All, I'm setting up Auth and ACL on a site, to manage access to the admin area, and I'm just looking for clarification. I've been looking at the "Simple Acl controlled Application" in the example applications section of the manual, and also the "Access Control Lists" bit (under Core Components). It seems to me that the two examples manage access in slightly different ways - the first example creates ACOs for all controller actions, the second creates ACOs for something more akin to controllers, and then uses the granularity implicit in the aros_acos table (the CRUD fields). Firstly, have I understood the two examples correctly? And if so are there obvious pros and cons to the two approaches? Thanks, Toby --~--~-~--~~~---~--~~ 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 clarification
Hi All, I'm setting up Auth and ACL on a site, to manage access to the admin area, and I'm just looking for clarification. I've been looking at the "Simple Acl controlled Application" in the example applications section of the manual, and also the "Access Control Lists" bit (under Core Components). It seems to me that the two examples manage access in slightly different ways - the first example creates ACOs for all controller actions, the second creates ACOs for something more akin to controllers, and then uses the granularity implicit in the aros_acos table (the CRUD fields). Firstly, have I understood the two examples correctly? And if so are there obvious pros and cons to the two approaches? Thanks, Toby --~--~-~--~~~---~--~~ 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 you develop in (ide, text editor, etc.)?
Netbeans 6.5 -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of ckosny Sent: 02 March 2009 08:03 To: CakePHP Subject: Re: What do you develop in (ide, text editor, etc.)? Ultraedit for everything --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Form question
Hi there, I'm pretty new to CakePHP and I think this is probably a very simple problem, but I'm not sure where I am going wrong. I am working on the add view for one of my models - Model1. The model belongsTo another model (Model2), which in turn belongsTo a third model (Model3). On the add view for Model1 I'm displaying a drop-down to select its Model2, like this: echo $form->input(model2_id'); However, I also want to display a automagically populated drop-down for Model3. I've tried a few things, like: echo $form->input(Model2.model3_id'); echo $form->input(Model3.id'); The first attempt displays the correct label ('Model3') and a textbox, however I'd like a drop-down listing all Model3 records. I set the type of the input to 'select', which then produced an empty HTML select. Anyone able to point me in the right direction? Thanks, Toby --~--~-~--~~~---~--~~ 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 you develop in (ide, text editor, etc.)?
I really like Netbeans too - before that I was using Zend Studio, but it was horribly clunky and slow. Netbeans could still be improved by it's getting there. From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Gonzalo Servat Sent: 28 February 2009 22:35 To: cake-php@googlegroups.com Subject: Re: What do you develop in (ide, text editor, etc.)? On Sat, Feb 28, 2009 at 8:06 PM, Mauricio Morales wrote: I just downloaded Netbeans for PHP 6.5 and it's great. I've been using Eclipse for a long but I think you can enjoy Netbeans (open source and works in linux, mac, windows). http://www.netbeans.org/features/php/ I second this. NetBeans for PHP 6.5 is excellent! I've stopped using Eclipse myself. - Gonzalo --~--~-~--~~~---~--~~ 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: new to cakephp
If it's any help, basic login stuff (plus permissions) is covered in this tutorial: http://book.cakephp.org/view/641/Simple-Acl-controlled-Application Toby -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of motoq88 Sent: 22 February 2009 18:27 To: CakePHP Subject: new to cakephp hi, I am new to cakePHP. I want to know it is possible to only lock some of features in a page and leave other portion of the lage open to public without requiring login. I also want to know where i can find existing code that supports basic login/logout and basic user control panel. thanks, motoq --~--~-~--~~~---~--~~ 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: No password hashing
Thanks for the tip! I actually am using cake bake - one of the steps is 'use scaffolding?', at which point I'd been blithely responding 'yes'. I have now discovered the alternate route through the process, and that seems to have solved my problems. Best wishes, Toby -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of BrendonKoz Sent: 19 February 2009 23:13 To: CakePHP Subject: Re: No password hashing Yeah, scaffolding is only used for testing your application out, not actually running it in production code. As Auth/ACL is more of a production-testing level, or stage, of coding, they do not work with it (scaffolding). It's a great time to learn how to use cake's bake command if you haven't yet. There is a screencast on the CakePHP website on how to use it if you haven't yet. :) On Feb 19, 3:36 pm, "Toby Mathews" wrote: > Finally figured it!! I was baking everything using scaffolding - possibly an > oversight on my part, but not using scaffolding seems to have solved the > problem. > > Toby > > > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf > > Of stevel > Sent: 16 February 2009 23:11 > To: CakePHP > Subject: Re: No password hashing > > Not quite sure what you were trying to do. How are you creating a new > user? Using the Add function in the User controller? If you are, then > the password will automatically be hashed by the ACL/Auth before it is > saved to the database. > > On Feb 16, 1:36 pm, toby1kenobi wrote: > > Hi there, > > > I've been following the great Acl/Auth tutorial in the manual > > (http://book.cakephp.org/view/641/Simple-Acl-controlled-Application). > > > I have a problem at the point of creating users (10.2.4 Acts As a > > Requester) - passwords are added to the database in plain text. This > > means the login method doesn't work, as it's expecting them to be > > hashed. I've been back over the tutorial a couple of times, but can't > > see what I've missed. Looking elsewhere I've been unable to determine > > what aspect of the setup might handle this - anyone able to cast any > > light on this? > > > Thanks, > > > Toby- 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 -~--~~~~--~~--~--~---
RE: No password hashing
Finally figured it!! I was baking everything using scaffolding - possibly an oversight on my part, but not using scaffolding seems to have solved the problem. Toby -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of stevel Sent: 16 February 2009 23:11 To: CakePHP Subject: Re: No password hashing Not quite sure what you were trying to do. How are you creating a new user? Using the Add function in the User controller? If you are, then the password will automatically be hashed by the ACL/Auth before it is saved to the database. On Feb 16, 1:36 pm, toby1kenobi wrote: > Hi there, > > I've been following the great Acl/Auth tutorial in the manual > (http://book.cakephp.org/view/641/Simple-Acl-controlled-Application). > > I have a problem at the point of creating users (10.2.4 Acts As a > Requester) - passwords are added to the database in plain text. This > means the login method doesn't work, as it's expecting them to be > hashed. I've been back over the tutorial a couple of times, but can't > see what I've missed. Looking elsewhere I've been unable to determine > what aspect of the setup might handle this - anyone able to cast any > light on this? > > Thanks, > > Toby --~--~-~--~~~---~--~~ 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: No password hashing
Thanks for responding Steve - yes, I guess that's what I'm doing. The controller is using scaffolding, so there's no explicit add method - I baked the models and controllers prior to implementing the ACL/Auth. Toby -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of stevel Sent: 16 February 2009 23:11 To: CakePHP Subject: Re: No password hashing Not quite sure what you were trying to do. How are you creating a new user? Using the Add function in the User controller? If you are, then the password will automatically be hashed by the ACL/Auth before it is saved to the database. On Feb 16, 1:36 pm, toby1kenobi wrote: > Hi there, > > I've been following the great Acl/Auth tutorial in the manual > (http://book.cakephp.org/view/641/Simple-Acl-controlled-Application). > > I have a problem at the point of creating users (10.2.4 Acts As a > Requester) - passwords are added to the database in plain text. This > means the login method doesn't work, as it's expecting them to be > hashed. I've been back over the tutorial a couple of times, but can't > see what I've missed. Looking elsewhere I've been unable to determine > what aspect of the setup might handle this - anyone able to cast any > light on this? > > Thanks, > > Toby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---