Closed DimNS closed 8 years ago
Found the manual php solution.
<?php $this->mycallback->__invoke(); ?>
Just encountered this, and found a similar StackOverflow question. Adding a solution from that SO question:
<?php ($this->mycallback)(); ?>
How to create your own function to use into $service->callback($arg1, ...) // Call a user-defined helper
code for all routes
template
result
Call to undefined method Klein\ServiceProvider::mycallback()
dump
$this
into template