Hi,
Can i show the login page instead of the default login message for protected content?
<?php
if(Auth::LoggedIn() == false)
{
echo '<div class="mcright" id="error">Please login to view this page. You can login <a href="http://www.easyjetva.com/index.php/login">Here</a></div></div>';
return;
}
?>
I am sure you can, the code would be simple. You just need code that shows the login form and place that code in the if statement.
Tom
3
<?php
if(Auth::LoggedIn() == false)
{
echo '<div class="mcright" id="error">Please login to view this page.';
Template::Show('login_form.tpl');
echo '</div></div>';
return;
}
?>
Thanks Tom i was nearly there with that just had some syntax formatting errors
nabeel
5
You can do that, or output a piece of javascript which redirects to the login page