thinkdiff
New member
- Affected version
- 2
I just created this file in library/MyCard/index.php and added this code in it
and in edit template -> member_view added this code
But I get this error:
How can I fix it?
Code:
class CardCoontroller{
public static function getCard() {
return 'test data';
}
}
and in edit template -> member_view added this code
Code:
<xf:callback class="CardCoontroller" method="getCard"></xf:callback
But I get this error:
Code:
Callback CardCoontroller::getCard is invalid (error_invalid_class).
How can I fix it?