You should have the login() & logout() methods in UsersController. See here:
http://book.cakephp.org/view/172/Authentication http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ http://www.webdevelopment2.com/cakephp-auth-component-tutorial-2/ On Mon, Jul 20, 2009 at 3:19 AM, Dhileepen Chakravarthy<[email protected]> wrote: > Thank you for your reply. > > But its not working.I dnt know where i did a mistake. > > I am using two tables one is posts and users. > > Login i use 'users' table. inside i am using 'posts' table for displaying > blog posts. > > index.ctp for login screen with form fields. ( $form->create('Post', > array('action' => 'login')) ) > posts_cotroller.php for action code. > post for model. > > how do i use here user model and users_controller.php here for > authentication. > > if i using thoseĀ controller goes into users folder. but my application in > posts folder only. > > Regards, > Dhileep > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
