07.01 php saved
kaotisch
Tags add more
 
Note
kaotisch did not leave a note
  1. login view: login.ctp
  2. <?= $session->flash('auth');
  3. pr($this->params);
  4. echo "stat:".$stat; echo "user:".$user;    pr($this->data);?>
  5. <!--
  6. <form id="UserLoginForm" method="POST" action="/verwaltung/users/login/">
  7. <div class="input text"><label for="UserUsername">Username</label><input name="data[User][username]" type="text" maxlength="50" id="UserUsername" /></div><div class="input password"><label for="UserPassword">Password</label><input type="password" name="data[User][password]" id="UserPassword" /></div><div class="submit"><input type="submit" value="Login" /></div></form></div>
  8. </div>-->
  9. <div class="login">
  10. <h2>Login</h2>   
  11. <form id="UserLoginForm" method="POST" action="/verwaltung/<?php echo $this->params['url']['url']; ?>">
  12.     //<?php echo $form->create('', array('action' => ''));?>
  13.         <?php echo $form->input('username');?>
  14.         <?php echo $form->input('password');?>
  15.         <?php echo $form->submit('Login');?>
  16.     <?php echo $form->end(); ?>
  17. </div>
Parsed in 0.100 seconds, using GeSHi 1.0.7.14

Modify this Paste