Thanks Mike! I followed the IBM 2nd tutorial from it's 5 series. So
now it works fine.
If anyone interested I changed the code to:
<?php
if ($error)
{
  e('Invalid Login.');
}
?>
 Please log in.
</p>
<?php echo $html->formTag('/users/login') ?>
<label>Username:</label>
<?php echo $html->inputTag('User/username', array()) ?>
<label>Password:</label>
<?php echo $html->passwordTag('User/password', array()) ?>
<?php echo $html->submitTag('login') ?>
</form>
<?php echo $html->link('register', '/users/register') ?>



On Oct 4, 5:39 pm, Mike Green <[EMAIL PROTECTED]> wrote:
> array is a function the last time i checked
>
> <?php echo $html->input('User/username', array()) ?>
> <label>Password:</label>
> <?php echo $html->password('User/password', array()) ?>
>
> I'm not entirely sure why you would pass an empty array in either
> case..
>
> Then again it's been a while since i looked at the 1.1 stuff.
>
> Mike
>
> On Oct 4, 3:36 pm, val <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm following the IBM tutorial #2.
> > The code suggested there for login.thtml is:
>
> > -------------------------------------------------------------------------
> > <?php
> > if ($error)
> > {
> >   e('Invalid Login.');}
>
> > ?>
> >  Please log in.
> > </p>
> > <?php echo $html->form('/users/login') ?>
> > <label>Username:</label>
> > <?php echo $html->input('User/username', array) ?>
> > <label>Password:</label>
> > <?php echo $html->password('User/password', array) ?>
> > <?php echo $html->submit('login') ?>
> > </form>
> > <?php echo $html->link('register', '/users/register') ?>
> > -------------------------------------------------------------------------
>
> > When I go tohttp://localhost/users/login, i get:
> > Parse error: syntax error, unexpected ')', expecting '(' in /var/www/
> > cake/app/views/users/login.thtml on line 13
>
> > What could be wrong? Thx.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to