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
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
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
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
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
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
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
$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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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,
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
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
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
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
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
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
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
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
> 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
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
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
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
> 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
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
> 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
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
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
--~--~-~--
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
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
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
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
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
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.
---
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
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
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
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
58 matches
Mail list logo