Thanks Jeremy, you are right, I'm trying to rebuild something it
exists, but I'm was doing it as an exercise to improve my knowledge of
how the different elements behave.
On a real development I would use Auth indeed.
If anyone still wants to take a look I would appreciate it.
Thanks
On Apr 8,
Forgive me if I have misunderstood, but it sounds as if you are trying to
rebuild something that comes for free with Cake. Have you read about the Auth
component? This manages authentication, your logged in state and prevents you
from running functions that you must be logged in for. If you are
Hi experts,
I'm new with CakePHP and I'm trying to build a simple component to
check if I'm logged (reading a value in session).
I created the component so I'm calling the function in controllers
beforeFilter, to check the user state from every action. The idea is
that if I'm not logged, it redir
hen I go to
the actual sites content on the Solaris box I get:
Fatal error: Call to a member function on a non-object in /local/
wwwdata/libraries/elibrary/compendium/cake/libs/view/helpers/html.php
on line 241
The apache logs are empty far as I can tell, I turned debugging up to
max in CakePHP but beca
Hi there,
I tried to set up the FileHandler from reversefolds (http://
www.reversefolds.com/articles/show/filehandler), upload works fine
when in 'array'-mode, but when I try use $_handlerType 'db' it stops
working. I found out it throws me an error 'Call to a member
R = 1;
> }
> ECHO "" .$reguser['id'] ."";
> ECHO "" .$reguser['uname'] ."";
> ECHO "" .$reguser['uemail'] ."";
> ECHO "" .$reguser['date'] ."
27;date'] ."";
ECHO "";
}
ECHO "";
ECHO "";
?>
I have changed the database.php file to map to my table regusers.
The problem is when i type the address http://localhost/regusers/report
in the browser window, I get the error:
Fatal error: Cal
On Jan 4, 2:27 am, "Grant Cox" <[EMAIL PROTECTED]> wrote:
When in the User model, just use $this->findByUsername, not
$this->User->findByUsername.
Thank you! I actually figured it out last night. Thanks again!
--~--~-~--~~~---~--~~
You received this message
When in the User model, just use $this->findByUsername, not
$this->User->findByUsername.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.
$this->set('username_error', 'Sorry, this
Username is taken.');
} else {
return true;
}
}
}
But I keep getting a "Fatal error: Call to a member function on a
non-obj
10 matches
Mail list logo