-1
这可能是我关于验证的第二个问题。但我仍然无法验证我的登录形式。因此,我决定再次发布我的代码。所以任何人都可以请告诉我如何进行身份验证?蛋糕php 2.0登录验证
//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>
我需要在我的索引函数中提到什么?
function index()
{
}
而我正好必须写/调用Auth组件。 任何人都可以请解释我...请不要发布食谱链接...我几乎读了4次,并已完全理解
如果您确实阅读了4次,您应该了解的内容比迄今为止发布的更多。另外,索引操作与您的登录问题有什么关系? – mark
马克,我hav试过了食谱的代码,但它不工作... –
Pavan,如果你问“你需要放在索引()中什么?”那么你可能在检查错误的Cookbook教程。该教程适用的链接如下:http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html。如果你遵循它,你不会有任何问题。现在甚至不担心授权 –