Skip to content

Instantly share code, notes, and snippets.

@janoelze
Created January 12, 2013 16:03
Show Gist options
  • Save janoelze/4518626 to your computer and use it in GitHub Desktop.
Save janoelze/4518626 to your computer and use it in GitHub Desktop.
Wo würde ich hier $files cachen?
# Model
class S3_File {
public function get_all_files(){
# code getting object of s3_files as $files
return $files;
}
}
# Controller
class File_Controller {
public function action_files(){
$s3files = new S3_File();
$files = $s3files->get_all_files();
render('site');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment