On Sat, Feb 5, 2011 at 11:42 AM, WhyNotSmile <[email protected]> wrote: > Thanks for your response OldWest. I've just changed how this is done, > but it's still not working. > > I would like the login page to appear like a regular page, so I want > users to be able to enter '/pages/membership' and be taken to the > page, which looks like all the others. > > I've routed it like this: > > (in routes.php) > Router::connect('/pages/membership', array('controller' => 'users', > 'action' => 'login')); > Router::connect('/pages/*', array('controller' => 'pages', 'action' > => 'view'));
You're needlessly complicating things by having PagesController also deal with logging in. There's no need to do this. Create an element with your login form and have it point to UsersController::login as normal. Include the element inside views/users/login.ctp and also inside any other page or layout where you'd like people to be able to log in from. -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
