Skip to content

Instantly share code, notes, and snippets.

@cgi-caesar
Last active August 1, 2019 08:02
Show Gist options
  • Save cgi-caesar/4bfe849574770c554fcb5e489993cb82 to your computer and use it in GitHub Desktop.
Save cgi-caesar/4bfe849574770c554fcb5e489993cb82 to your computer and use it in GitHub Desktop.
aMember (site.php): Change URL to signup page on Login Page
<?php
Am_Di::getInstance()->hook->add(Am_Event::BEFORE_RENDER, function (Am_Event $e) {
if (stripos($e->getTemplateName(), '/login.phtml') !== false) {
$e->getView()->signup_url = '/your/custom/url';
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment