Re: Basic ACL tutorial in 1.3 book will not work because Auth is not setting Auth.User

2012-08-24 Thread osucoder
Can anyone help me? On Sunday, August 5, 2012 7:13:02 PM UTC-4, osucoder wrote: > > I cannot get the login function to work after following the acl tutorial. > I'm getting an "Auth.User doesn't exist" error when I dump the Session > variable after calling

Basic ACL tutorial in 1.3 book will not work because Auth is not setting Auth.User

2012-08-05 Thread osucoder
I cannot get the login function to work after following the acl tutorial. I'm getting an "Auth.User doesn't exist" error when I dump the Session variable after calling "$this->Session->read('Auth.User);" If searched all over the place for an answer and

Simple ACL tutorial files?

2012-04-02 Thread Benjamin Allison
Just wondering if anyone has files for the finished ACL app from the Cake site. I like to pick apart finished code when going through a tut. Thanks! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp

Re: [Noob!] Acl Tutorial Question

2011-10-01 Thread Austin Pickett
Got it all figured, went through the tutorial again seemed I must have missed up along the path of initdb. On Sat, Oct 1, 2011 at 10:03 AM, badben wrote: > Do you have a record in your aro table with a value of "Group" in the model > field and "1" in the foreign key field? > > -- > Our newest s

Re: [Noob!] Acl Tutorial Question

2011-10-01 Thread badben
Do you have a record in your aro table with a value of "Group" in the model field and "1" in the foreign key field? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their Ca

Re: [Noob!] Acl Tutorial Question

2011-09-30 Thread Sam Sherlock
s the group model acting as a requester (this may differ for cake 2 in set up - otherwise I may be off base anyway) there is a video on cake tv about acl "its easier to ask for forgiveness that Acl permissions" and Mark Story end to end acl tutorial - S On 30 September 2011 17:24, Austin

Re: [Noob!] Acl Tutorial Question

2011-09-30 Thread Austin Pickett
Ah, that moved me forward as to showing me a new message hopefully someone would be able to help me decipher. The error on the page: http://pastebin.com/PKUwaRBq Also note that when the console "cake acl view aro" is executed: http://pastebin.com/bYgy034H i have my groups set up the w

Re: [Noob!] Acl Tutorial Question

2011-09-30 Thread Sam Sherlock
$this->Auth->authorize = 'controller'; change to $this->Auth->authorize = 'actions'; or crud if your mapping actions http://book.cakephp.org/view/1275/authorize On 29 September 2011 03:34, Austin Pickett wrote: > $this->Auth->authorize = 'controller'; -- Our newest site for the community

[Noob!] Acl Tutorial Question

2011-09-30 Thread Austin Pickett
I just finished the blog tutorial, and moved on to the Acl tutorial using the blog -- I walked through the whole ordeal but still seems that when I log in as user with permission 1 (admin) I still receive the Auth message of: "You are not authorized to access that loc

Re: acl tutorial aros and acos tables

2011-09-11 Thread Almacenamiento Almacenamiento
Yes, you can also add in the controller, but is otherwise and is somewhat harder to remember .. 2011/9/11 elija > One of the DOH! moments. > > In case anyone else is this much of an idiot, the code in 11.2.4 Acts > As a Requester is for the models, not the controllers. > > On Sep 11, 5:54 pm, el

Re: acl tutorial aros and acos tables

2011-09-11 Thread elija
One of the DOH! moments. In case anyone else is this much of an idiot, the code in 11.2.4 Acts As a Requester is for the models, not the controllers. On Sep 11, 5:54 pm, elija wrote: > Moving to the next page, I see that acos isn't automatically populated > but in my case neither is aros. I've g

Re: acl tutorial aros and acos tables

2011-09-11 Thread elija
Moving to the next page, I see that acos isn't automatically populated but in my case neither is aros. I've gone through the tutorial again and can't see anything i've missed. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

acl tutorial aros and acos tables

2011-09-11 Thread elija
I'm using cake 1.3 and following the "Simple acl controlled application" tutorial. I get as far as adding my groups and users but the aros and acos tables are both empty. As I'm a complete beginner to Cake, where should I start investigating this? Cheers Elija -- Our newest site for the commun

Re: ACL Tutorial SQL statements

2011-02-07 Thread Cyrus
thank you! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups

Re: ACL Tutorial SQL statements

2011-02-07 Thread José Lorenzo
This issue was recently fixed, please visit the book page again to see correct code samples On Feb 7, 11:32 am, Cyrus wrote: > Im not quite sure if I just don't see it, but > inhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application#!... > it says " Execute the following SQL statemen

ACL Tutorial SQL statements

2011-02-07 Thread Cyrus
Im not quite sure if I just don't see it, but in http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application#!/view/1544/Preparing-our-Application it says " Execute the following SQL statements into your database." where there are no SQL statements on the whole page. Could someone tell

Re: login/logout Issue with acl tutorial

2011-01-20 Thread andy_the ultimate baker
hi, to go back to login page after logoutt all u need to sett that logoutt redirect action. like bellow function logout() { $this->Session->setFlash('You have successfully logged out'); $this->Auth->logout(); $this->redirect(array('action'=>'login')); //$thi

Re: Acl Tutorial: trying to logout

2011-01-19 Thread opike
I think I fixed this by adding this line to the beforeFilter() method: $this->Auth->allow('logout'); On Jan 19, 10:10 am, opike wrote: > I finished implementing the acl tutorial > here:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application > > and it w

Re: login/logout Issue with acl tutorial

2011-01-19 Thread opike
Sorry, this is a duplicate post. Since it took 4 hours for my original post to show up I wasn't sure if I had submitted it properly. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help othe

login/logout Issue with acl tutorial

2011-01-19 Thread opike
I just impleted the acl tutorial: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application and I did the following to test it out. Logged in with user1 (member of the administrator group). Fine. Logged out by issuing the url http://localhost/cake/app/users/logout. Fine. Logged in with

Acl Tutorial: trying to logout

2011-01-19 Thread opike
I finished implementing the acl tutorial here: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application and it was working for the most part, I was testing logging in and out with the different users. But now it's in a state where it won't let me access any of the other

cakePHP - ACL tutorial & SQL Error: 1104

2010-06-07 Thread DisapprovingRabbit
Greetings! I run into a problem/bug in production environment with SQL Error: 1104 when deploying a project secured with the ACL tutorial. The full error: SQL Error: 1104: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET

Select box instead of input text in ACL tutorial

2010-04-26 Thread Andrei Mita
Hello, I have the groups and users tables from the ACL tutorial but profiles instead of posts. When I try to add a user or a profile, I get an input text for the $belongsTo relation. How can I change that to a select box? The views are baked and the relations are: - Group hasMany User

Re: Undefined Property error in ACL tutorial (1.3.0-RC4)

2010-04-25 Thread Don Drake
cricket, Though that didn't directly solve the problem, it put me onto the solution. Reading the section again I realized it said: "flash() was the only helper method that auto outputted" Um, Helper method. I had the Session component working but not the session helper. Don On Sun, Apr 25, 2010

Re: Undefined Property error in ACL tutorial (1.3.0-RC4)

2010-04-25 Thread cricket
On Apr 25, 3:40 pm, dreamingmind wrote: > I haven't been able to figure out why I'm getting > Undefined property: View::$Session [APP/views/layouts/default.ctp, > line 43] > > I've got the the line >   var $components = array('Acl', 'Auth', 'Session'); > in app_controller.php which is stored in ap

Undefined Property error in ACL tutorial (1.3.0-RC4)

2010-04-25 Thread dreamingmind
I haven't been able to figure out why I'm getting Undefined property: View::$Session [APP/views/layouts/default.ctp, line 43] I've got the the line var $components = array('Acl', 'Auth', 'Session'); in app_controller.php which is stored in app/ not app/controllers/. The line causing the error i

Re: ACL tutorial

2009-12-01 Thread andrzejborkow...@gmail.com
function logout() { $this->Auth->logout(); $this->redirect('/', null, true); } this fully work Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you a

Re: ACL tutorial

2009-11-30 Thread Joseph Roberts
Try, function beforeFilter() { $this->Auth->logoutRedirect = array('controller' => 'xxx', 'action' => 'xxx'); } function logout() { $this->Auth->logout(); } On Nov 30, 10:24 am, Lorenzo Bettini wrote: > Hi > > I've just started using cakephp, and in the second tu

ACL tutorial

2009-11-30 Thread Lorenzo Bettini
Hi I've just started using cakephp, and in the second tutorial, the acl one, logout() in class userd_controller.php does not seem to work: function logout() { $this->Session->setFlash('Good-Bye'); $this->redirect($this->Auth->logout()); } infact I

Re: acl tutorial - invalid node

2009-10-06 Thread brian
this->Acl->deny($group, 'controllers'); >    $this->Acl->allow($group, 'controllers/Posts/add'); >    $this->Acl->allow($group, 'controllers/Posts/edit'); >    $this->Acl->allow($group, 'controllers/Widgets/add'); >    $this->Acl-

Re: acl tutorial - invalid node

2009-10-06 Thread Manu
Acl->deny($group, 'controllers'); $this->Acl->allow($group, 'controllers/Posts/add'); $this->Acl->allow($group, 'controllers/Posts/edit'); $this->Acl->allow($group, 'controllers/Widgets/add'); $this->Acl->allow($group,

Re: acl tutorial - invalid node

2009-10-06 Thread brian
On Tue, Oct 6, 2009 at 9:42 AM, Manu wrote: > > Hi > > I'm trying to do the acl tutorial from the cake docs. > Unfortunately I can't edit the permissions. > When I try to setup the permissions I get this warning. > > Warning (512): DbAcl::allow() - Inval

acl tutorial - invalid node

2009-10-06 Thread Manu
Hi I'm trying to do the acl tutorial from the cake docs. Unfortunately I can't edit the permissions. When I try to setup the permissions I get this warning. Warning (512): DbAcl::allow() - Invalid node [CORE\cake\libs\controller \components\acl.php, line 325] I also tried to set up p

ACL Tutorial Problem

2009-09-30 Thread robmcvey
We are going through the "Simple Acl controlled Application Tutorial" in the manual. Everything is going fine until we try and run the "Automated tool for creating ACOs" in this section; http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs When we run this method we get the foll

Re: acl tutorial, problem with command line

2009-07-01 Thread mark_story
Well you can't just run that command copy + paste style. The idea was to show how the parameters are used. Not give a concrete use. so you could do cake acl grant jimbo controllers '*' or cake acl grant barney controllers/beers/drink '*' But simply copying and pasting will not work. -Mark

Re: acl tutorial, problem with command line

2009-07-01 Thread number9
I usually do that via a temporary function in one of the controllers - it basically acts as the command line does, I personally prefer doing it this way because I think it is easier. I have attached one of my temporary functions for reference below. Once you have added it to your users controller

acl tutorial, problem with command line

2009-07-01 Thread 0plus1
I'm following the tutorial on ACLs and I'm stuck here: http://book.cakephp.org/view/648/Setting-up-permissions I'm on windows :-( and when I issue this command: cake acl grant $aroAlias $acoAlias [create|read|update|delete|'*'] I get this error message in return: "read" is not recognized as a co

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-05-01 Thread Andy
9 am, albe wrote: > Hi, > I'm trying to follow the "Simple ACL" tutorial but I've got a problem > just after the database configuration with cake bake. > The steps I take are the following: > > - I copy cake code in my htdocs directory > - I create a database wi

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-21 Thread brian
Maybe you set something up wrong in the form or your validation. You can put this in your view: debug($this->validationErrors); ... just to figure out both the error and also may lead you to why the msg is not being displayed. On Tue, Apr 21, 2009 at 5:08 AM, albe wrote: > > Ok, at this point

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-21 Thread Jon Bennett
> Ok, at this point > > http://book.cakephp.org/view/645/Acts-As-a-Requester > > I've got to "add some groups and users using the baked forms" so I > type on my browser > > http://localhost/simpleacl/groups/add > > and I put the name of the group that I want to create on the form but > when I hit

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-21 Thread albe
Ok, at this point http://book.cakephp.org/view/645/Acts-As-a-Requester I've got to "add some groups and users using the baked forms" so I type on my browser http://localhost/simpleacl/groups/add and I put the name of the group that I want to create on the form but when I hit submit button I se

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread Jon Bennett
Hi Able, > The main problem is that, when I set the app folder's path with > > cake bake project > > it changes automatically few seconds after and it returns to be I'm not sure, I don't use bake or the console often, and have only had real success in a production environment, not locally. try

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread albe
The main problem is that, when I set the app folder's path with cake bake project it changes automatically few seconds after and it returns to be ...\cake\console (the default value). How is it possible?! On Apr 20, 1:58 pm, Jon Bennett wrote: > > Ok, I'm going to try to keep on with the tut

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread Jon Bennett
> Ok, I'm going to try to keep on with the tutorial. > Once I've created baked Models and Controllers, I've got to create the > views but which actions should I declare? > The tutorial simply doesn't tell that... > http://book.cakephp.org/view/642/Preparing-our-Application Why not work with an ex

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread albe
Ok, I'm going to try to keep on with the tutorial. Once I've created baked Models and Controllers, I've got to create the views but which actions should I declare? The tutorial simply doesn't tell that... http://book.cakephp.org/view/642/Preparing-our-Application On Apr 19, 8:47 pm, Jon Bennett

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-19 Thread Jon Bennett
> Yes, I already tried the blog tutorial and all worked well and I can > use phpmyadmin correctly. Ok, sounds like a command line issue, are you able to use Bake successfully? I've been using ACL for a quite a while now, and haven't had to touch the console at all, so perhaps just keep on with th

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-19 Thread albe
Yes, I already tried the blog tutorial and all worked well and I can use phpmyadmin correctly. On Apr 19, 3:50 pm, Jon Bennett wrote: > Hi, > > This doesn't sound specific to ACL, more likely something screwy with > your apache config (or at least the info you're giving it). > > Can you access c

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-19 Thread Jon Bennett
Hi, This doesn't sound specific to ACL, more likely something screwy with your apache config (or at least the info you're giving it). Can you access cake and the db via the browser? hth jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-19 Thread albe
up --~--~-~--~~~---~--~~ 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 F

Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-17 Thread albe
Hi, I'm trying to follow the "Simple ACL" tutorial but I've got a problem just after the database configuration with cake bake. The steps I take are the following: - I copy cake code in my htdocs directory - I create a database with the 4 table just as wrote on the first page

Simple ACL tutorial ?'s

2008-12-25 Thread justclint
Im setting up my first acl app. Ive tried a number of tutorials but all of them seem to have gaps in between instructions leaving me at a deadend. I figure Im just going to use the Simple ACL tutorial at: http://book.cakephp.org/view/641/Simple-Acl-controlled-Application But I run into the same

Re: Source code of completed blog and ACL tutorial

2008-11-14 Thread mark_story
I originally posted the Acl tutorial on my site http://mark-story.com and the source is at the end of part 2. -Mark On Nov 13, 10:56 am, gfmailweb <[EMAIL PROTECTED]> wrote: > Is there somewhere I can download the source code to a completed 1.2 > Blog tutorial including the ACL por

Re: Source code of completed blog and ACL tutorial

2008-11-13 Thread Rob
block on the tutorial > --- > > I'm trying to follow the ACL tutorial and I made it this > far:http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs > > What I'm unsure about is: > 1. how, when, and how oft

Re: Source code of completed blog and ACL tutorial

2008-11-13 Thread Rob
most helpful. > > I would use this as a reference because I seem to have run into a > roadblock on the tutorial > --- > > I'm trying to follow the ACL tutorial and I made it this > far:http://book.

Source code of completed blog and ACL tutorial

2008-11-13 Thread gfmailweb
--- I'm trying to follow the ACL tutorial and I made it this far: http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs What I'm unsure about is: 1. how, when, and how often do I need to run the functions provided on that page 2. what to do with the code at the

Re: New Set of ACL Tutorial Articles

2008-04-15 Thread aranworld
Aran On Apr 15, 2:47 pm, mbavio <[EMAIL PROTECTED]> wrote: > On Apr 15, 1:46 pm, aranworld <[EMAIL PROTECTED]> wrote: > > > > > I have written up a bunch of ACL tutorial articles which will > > hopefully help others start using the ACL Component. > > > A

Re: New Set of ACL Tutorial Articles

2008-04-15 Thread mbavio
On Apr 15, 1:46 pm, aranworld <[EMAIL PROTECTED]> wrote: > I have written up a bunch of ACL tutorial articles which will > hopefully help others start using the ACL Component. > > Although I think there are some really good tutorials already, I felt > that since there still i

New Set of ACL Tutorial Articles

2008-04-15 Thread aranworld
I have written up a bunch of ACL tutorial articles which will hopefully help others start using the ACL Component. Although I think there are some really good tutorials already, I felt that since there still isn't a manual section written, that some really basic beginner tutorials needed