Hi! Sorry if this is more of a PHP question than a Kirby 3 question - but I’m stuck on this ![]()
I have a plugin, with a helpers.php (required from within index.php). Is there a way to access $page, $kirby and $pages inside the helper function without having to pass them as arguments from within the page template where the helper is used?
…or even better, can I even access these from within the Class function Commentions::queueComment without passing them from the helper?
use sgkirby\Commentions\Commentions;
function commentions( $page, $kirby, $pages ) {
if ( get('submit') )
$feedback = Commentions::queueComment( $page, $kirby, $pages );
}