function myaddonname_content($a){ head_add_css('/addon/flashcards/view/css/flashcards.css');...}
<?phpnamespace Zotlabs\Module;use Zotlabs\Web\Controller;class Myaddonname extends Controller { function get() { // do stuff }}
use Zotlabs\Register\Route;myaddname_load( Route::register('addon/myaddonname/Mod_myaddonname.php','myaddonname');}
Oh, but you won't have myaddonname_content(). This is now deprecated but still works in Hubzilla.