After user is registered he is transferred to page
header('location: ' . URLROOT . '/users/login?success=registration');
And i want to display message on view /users/login by grabbing url ?success=registration
<?php
if(isset($_GET['success']) && $_GET['success'] == 'registration'){
echo ' <h3 style="color: green;">Registration successful</h3>';
} else {
echo '';
}
I am using handmade MVC framework so I can't refer to /user/login.php it needs to be /user/login because first one is controller and the second is controllers action.
I have two .htaccess files first one is located outside
And the second one located in public folder