CakePhp

Facebook, MySpace, Twitter, Jaiku. LinkedIn, Tumblr, Plurk, and all their clones and imitators and cousins -- talk about them here.

CakePhp

Postby eugen » Tue Feb 17, 2009 6:51 pm

wondering if anybody uses cakephp and can help me implement the AUTH and ACL components.... they have very little documentation...
eugen
 
Posts: 5
Joined: Tue Jan 13, 2009 9:17 pm

Re: CakePhp

Postby adminjulia » Thu Feb 19, 2009 7:11 pm

Eugen, I don't have any experience with them, I'm afraid. But you might check out these two tutorials:

Getting Started With CakePHP
Getting Started With CakePHP Part 2

There's a bunch of other PHP stuff in my Google Notebook for PHP.
Julia Benson-Slaughter
Associate Professor of Computer Science and Forum Goddess
My GPC web site
My Personal web site
User avatar
adminjulia
Site Admin
 
Posts: 170
Joined: Thu Aug 28, 2008 2:54 pm
Location: Here

Re: CakePhp

Postby realn0whereman » Thu Feb 19, 2009 8:55 pm

What specifically are you getting stuck with? getting cakephp to recognize these components? I am very proficient the with MVC framework called Catalyst which is PERL based, and its very similar to cakephp. AIM me if you would like to discuss further: realn0whereman

[ha i love the name, cakephp. in an article the author said "All this can be baked with cakephp", made me giggle]
Image <-- use that 40's thing called imagination and pretend it's centered.
realn0whereman
 
Posts: 56
Joined: Mon Jan 12, 2009 11:41 am
Location: afk

Re: CakePhp

Postby eugen » Thu Feb 19, 2009 10:14 pm

I know how to reference the components, but I'm not sure exactly how to use them. I've read some of the docs, and other information about them...but I've never really integrated them correctly.

Basically there are two components, ACL and AUTH. They don't have to be used together, but they work well together. The problem is I don't know how AUTH stores information into the Session, and how to work with the ACL component to manage who can access what...

...its more difficult than usual, because I can't just dump it ("var_dump()") --- what I usually do with POST data. I guess what I really don't know is how ACL communicates with AUTH and vice versa.

I have a bunch of questions about those two components...

btw... "cakePHP" does sound a little fruity...especailly when they use terms like "bake", "just baked", "out of the oven"....lol

...as long as it gets the job done, I could care less about what they call it...
eugen
 
Posts: 5
Joined: Tue Jan 13, 2009 9:17 pm

Re: CakePhp

Postby realn0whereman » Fri Feb 20, 2009 9:15 am

From what you're telling me I don't think you've got a good grasp on object oriented programming

Something to keep in mind: ACL is authorization, while auth is authentication. Authentication establishes who you are, while authorization establishes what you can do.



http://bakery.cakephp.org/articles/view ... akephp-acl
this does an excellant job of explaining ACL

and this explains Auth really well:
http://www.littlehart.net/atthekeyboard ... component/

Basically, this is what goes down. You try to login, and the page references a database, and asks does the username match the password. if so, redirect to page X (ideally page X will be accessible to all user permission levels). then once you are logged in ( and the session says that you're logged in ( for example, if the session/cookie doesnt say so, then you wont stay logged in)) and you try to navigate to page Y, before the page is loaded, cakePHP checks against a databse( probably the same database) what your user permission level is, and then the code will specify if that permission level is able to view that page. if it is, the page loads.
Image <-- use that 40's thing called imagination and pretend it's centered.
realn0whereman
 
Posts: 56
Joined: Mon Jan 12, 2009 11:41 am
Location: afk


Return to Web 2.0

Who is online

Users browsing this forum: No registered users

cron