Routing question

2009-05-06 Thread Dcahrakos

Hi,

I am working on a website where i need to get a list of articles from
a database, and the original url is something like
http://localhost/articles/article/Article Title here

what im trying to do is reroute it so I can access it with something
like
http://localhost/view/Title here

but I cant seem to get the routing to work properly...what is the
correct way to get this to work?

Thanks.
--~--~-~--~~~---~--~~
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: Auth problem, login not working.

2009-02-10 Thread Dcahrakos

oops, sorry, was in a rush to leave for work didnt have time to post
it.

The login function is empty, which according to the docs on the auth
component, thats the way its supposed to be since auth does it all.

my config for auth in the AppController is:

var $components = array('Auth');

function beforeFilter() {

$this->Auth->loginAction = array('controller' => 'users',
'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'members',
'action' => 'home');
$this->Auth->loginError = "Incorrect Password!";
$this->Auth->authError = "Sorry, you cannot access this page.";

}

On Feb 10, 2:49 pm, Miles J  wrote:
> Can we see your login action() and all the config for auth.
>
> On Feb 10, 1:29 pm, Dcahrakos  wrote:
>
> > Hi,
>
> > I am using the Auth component for registration and login, registration
> > is working perfectly, but login doesnt seem to be doing anything at
> > all,
>
> > I have Auth loaded in the AppController since I will be using it site
> > wide, however when I try to log in I just return to the login page
> > because the page it is supposed to redirect me to requires you to be
> > logged in.
>
> > The only message I get from auth is the message I set "Sorry you
> > cannot access this page"
>
> > my login.ctp is just a simple login form with a username and password
> > field,  and my Users controller has an empty login function at the
> > moment.
>
> > from what i've read everything should work, however it is not...
>
> > am I missing something here? do I need to add code to the login
> > function of the controller? or add anything to the user model?
>
> > Thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Auth problem, login not working.

2009-02-10 Thread Dcahrakos

Hi,

I am using the Auth component for registration and login, registration
is working perfectly, but login doesnt seem to be doing anything at
all,

I have Auth loaded in the AppController since I will be using it site
wide, however when I try to log in I just return to the login page
because the page it is supposed to redirect me to requires you to be
logged in.

The only message I get from auth is the message I set "Sorry you
cannot access this page"

my login.ctp is just a simple login form with a username and password
field,  and my Users controller has an empty login function at the
moment.

from what i've read everything should work, however it is not...

am I missing something here? do I need to add code to the login
function of the controller? or add anything to the user model?

Thanks.
--~--~-~--~~~---~--~~
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 question regarding Acl example

2009-02-09 Thread Dcahrakos

Hi,

I just started using cakePHP, im almost done reading through the
documents, but I was wondering something,

I was reading the example for the ACL controlled application, and on
one part it says

"
Our controllers and models are now prepped for adding some initial
data, and our Group and User models are bound to the Acl table. So add
some groups and users using the baked forms. I made the following
groups:
"

what baked forms is this referring to?

and when inserting users, if I made a registration function in the
users controller, and made a form to insert a user into the database
would it automatically update everything for acl to work properly?

Thanks.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---