Skip to content

Instantly share code, notes, and snippets.

@kinglozzer
Created February 26, 2014 14:56
Show Gist options
  • Save kinglozzer/9230902 to your computer and use it in GitHub Desktop.
Save kinglozzer/9230902 to your computer and use it in GitHub Desktop.
<?php
public function index() {
// If they've not seen the intro, show that and set the cookie...
if ( ! Cookie::get('ShownIntro')) {
Cookie::set('ShownIntro', true);
return $this->renderWith(array('IntroPage', 'Page'));
}
// ... otherwise proceed as normal
return array();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment