XF 2.0 Outputting PHP Callback

myselfolli

New member
Okay, I am really lost on this one.

I'm just starting to wrap my head around the PHP callbacks, so the soltuion is probably really simple...

I've created a page, which I want to load the result of a MySQL Query into. I haven't gotten to the query yet, for now I just want to output anything to the page. Here's what I've got:

PHP:
<?php

  namespace MyFirstCallback;

  class genericClassName {

    public static function returnthis() {
      return 'Hello world!';
    }

  }

?>

I've included this callback both with the PHP callback option you get when creating a page, as well as the coresponding XF syntax

HTML:
<xf:callback class="MyFirstCallback\genericClassName" method="returnthis"></xf:callback>

But I don't see any output when loading the page?
I know it's being executed, I can see that in the debugging information.

Any help would be appreaciated ^^
 
Top Bottom