@LunarDraco, Thank You, Thank You, Thank You, Thank You, Thank You,
Thank You!
I suspected that I was not setting the variable correctly and
$activeUser = $this->Auth->user()
in the beforeFilter function of app_controller.php was exactly the fix
I needed. I got the the other version from
I have used DebugKit with great success. Here is the article about it:
http://thechaw.com/debug_kit/wiki
You get a toolbar at the top of the window with access to tons of
stuff. It does not do line by line debugging. I would like to use
FirePHP for adding breakpoints and watching variables, but
$activeUser = $this->User->find(array($this->Auth->user('id')));
Not sure I understand why you set the active user with this line:
as $this->Auth->user() should contain everything you need from the
user model.
After a user is logged in you never tell the auth component that the
user has logged ou
@Martin, thanks. debug($activeUser); returns the type of output I was
expecting.
@abc, I'll look into the php version also.
Now on to my problem, once I actually stopped to _read_ the debug
output I realized that the $activeUser variable is NOT CHANGING when I
log out and log back in again. In a
Any reason you are not just using debug?
debug($activeUser);
I have never used the Debugger class myself. I am generally content to
just debug to screen when something strange happens.
/Martin
On Sep 2, 2:36 am, abc wrote:
> Use the var_dump of php,
> ob_start();
> var_dump($active
Use the var_dump of php,
ob_start();
var_dump($activeuser);
$dump_string = ob_get_clean();
Now dump the string,
On Sep 1, 12:06 pm, McScreech wrote:
> Hello,
>
> I am learning to trace through my code to debug results that I don't
> understand.
> I have the following setup (in part
Hello,
I am learning to trace through my code to debug results that I don't
understand.
I have the following setup (in part):
(And apologies for running on in my attempt to describe the
situation.)
in app_controller.php:
var $uses = array('User');
var $components = array('Acl', '