Skip to content

Instantly share code, notes, and snippets.

@sashtown
Created September 2, 2013 09:56
Show Gist options
  • Save sashtown/6411171 to your computer and use it in GitHub Desktop.
Save sashtown/6411171 to your computer and use it in GitHub Desktop.
Kirby Auth Plugin: Stuff to redirect to the last page before the login/logout.
<?php snippet('header') ?>
<main role="main">
<article class="content">
<h1><?php echo html($page->title()) ?></h1>
<?php echo kirbytext($page->text()) ?>
<?php if($user = Auth::user()): ?>
<?php echo kirbytext($page->auth()) ?>
<?php endif ?>
</article>
</main>
<?php snippet('footer') ?>
<?php $login = Auth::login() ?>
<?php Auth::logout() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment