Created
February 26, 2014 14:56
-
-
Save kinglozzer/9230902 to your computer and use it in GitHub Desktop.
This file contains 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 | |
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