Last active
August 1, 2019 08:02
-
-
Save cgi-caesar/4bfe849574770c554fcb5e489993cb82 to your computer and use it in GitHub Desktop.
aMember (site.php): Change URL to signup page on Login Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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