Created
January 12, 2013 16:03
-
-
Save janoelze/4518626 to your computer and use it in GitHub Desktop.
Wo würde ich hier $files cachen?
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
# 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