Banshee
the secure PHP framework

Forum

How to print out something libraries/models/contro

new banshee user
18 october 2016, 21:36
[controllers]
I could use $this->output->add_message(" some information");

[models]
I could use $_user->log_action( "%s", $_POST["username"]);

[libraries]
how to debug some function? eg. function login_password
$user = $data[0];

How to get print_r($user); shown?
Hugo Leisink
19 october 2016, 07:50
Everything that is printed will be shown in an error message in screen in debug mode (see settings/website.conf) or sent to the webmaster email address (see Settings Administration page in CMS).
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]