0

I have that in controller:

$aUser = Phpfox::getUserBy('user_name');

How to print_r the content of $aUser (for debugging process to see the content of that object) ?

I tried print_r(aUser) in controller: NO OUTPUT

I tied {$aUser}in templates: output Array()

yarek
  • 11,278
  • 30
  • 120
  • 219

1 Answers1

1

In controller files, you can use:

d($aUser);

In template files, you can use:

{$aUser|var_dump}
Trung Ngon
  • 51
  • 1