Forked from auniverseaway/gist:2ffb4799a6f05eaa997e
Last active
August 29, 2015 14:04
-
-
Save joshperry/69b29dec771e357da618 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
public function getRecentEpisodes() | |
{ | |
$podcastid = Input::get('podcast_id'); | |
$podcast = Podcast::find($podcastid); | |
// If we don't have any epsisodes, we need to import them for the feed | |
$this->episodesController->importEpisodes($podcast); | |
// Now let's collect our episodes | |
$episodes = $this->episodesController->getLastTenEpisodes($podcast); | |
$return = array( | |
'response' => $episodes | |
); | |
return $return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment