Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9199995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:40:01+00:00 2026-06-17T22:40:01+00:00

This is probably my second question regarding authentication. But i am still not able

  • 0

This is probably my second question regarding authentication. But i am still not able to authenticate my login-form..Hence i have decided to post my code again.
So can anyone please tell me how the authentication is done ????

//this is my index page, where a user logs in
<div align="center">
<h2> ONLINE LIBRARY SYSTEM </h2>
<h4> If you have already registered into our library system . Please Login below </h4?
<br />
</div>
<div class="form">
<fieldset>
<?php
echo $this->Form->create('Member');
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->end('Login');
?>
<h4> If not registerd. Register here <?php echo $this->Html->link('Register     Now',array('controller'=>'members','action'=>'register')); ?> </h4>
</fieldset>
</div>

And what do i need to mention in my index function ??

function index()
{

}

And where exactly i must write/call the Auth component….???
Can anyone please explain me…And Please dont post the link of cookbook…i read it almost 4 times and have nt understood perfectly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:40:02+00:00Added an answer on June 17, 2026 at 10:40 pm

    The index function is generally called, when the user invokes the controller, without specifying an action. Eg: http://localhost/cake/<some-controller>

    . Hence what goes into the index() function, depends, on what you want to display, if the user has not specified a specific action, such as http://localhost/cake/<some-controller>/<some-action> (eg. http://localhost/cake/library/show_book.

    As a practice, most developers put the above code (login stuff) into login() function.

    The following is some additional information, that you can read up on, wrt to getting the authentication working:

    • Adding ‘Auth’ as one of the components;
    • Modifying beforeFilter in AppController
    • Modify beforeFilter in each of your controllers, if any of the actions should bypass the
      Authentication scheme.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a dum error that can be fixed in seconds but have
This probably is a dummy question but I cannot find a clear indication. I
I know this probably really simple but Im not sure what im doing wrong...
Im sorry for this probably dumm question, but I want to simply open modals
This is probably a rudimentary question, but I'm new to threaded programming in Python
this is probably an old question, but I've read through articles about usb barcode
This is probably an elementary question. However, I have completed reading the 5th Chapter
Probably for someones this question is trivial but i can't remember which is the
This is probably a silly question, but curiosity has gotten the better of me.
This is probably a simple question, and I'm slightly embarrassed to ask it, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.