Re: Fatal error: Call to a member function on a non-object

2010-04-08 Thread Luck
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,

Re: Fatal error: Call to a member function on a non-object

2010-04-07 Thread Jeremy Burns
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

Fatal error: Call to a member function on a non-object

2010-04-07 Thread Luck
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

Call to a member function on a non-object in html.php

2010-02-04 Thread Will
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

FileHandler from reversefolds, 'Call to a member function on a non-object'

2007-09-25 Thread bigbass
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

Re: Fatal error: Call to a member function on a non-object

2007-06-01 Thread Christopher E. Franklin, Sr.
R = 1; > } > ECHO "" .$reguser['id'] .""; > ECHO "" .$reguser['uname'] .""; > ECHO "" .$reguser['uemail'] .""; > ECHO "" .$reguser['date'] ."

Fatal error: Call to a member function on a non-object

2007-06-01 Thread cakephpnewbie
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

Re: Call to a member function on a non-object

2007-01-04 Thread dummptyhummpty
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

Re: Call to a member function on a non-object

2007-01-04 Thread Grant Cox
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.

Call to a member function on a non-object

2007-01-04 Thread dummptyhummpty
$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