Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Q2A
<?php
class block_pw_page
{
var $directory;
var $urltoroot;
public function load_module($directory, $urltoroot): void
{
$this->directory = $directory;
$this->urltoroot = $urltoroot;
}
public function match_request($request): bool
{
if($request === 'messages') {
return true;
}
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment