- <?PHP
- public function LayoutImage_Action()
- {
- $this->_view()->headContentType($this->_parameter()->mime);
- $this->_view()->header('Content-Disposition', 'filename=test.png;');
- $this->_view()->headDisableLayout();
- $this->_view()->assign
- (
- 'content',
- file_get_contents
- (
- $this->_root->Boot->System->Registry->get()->APP_DIR->IMAGES
- .$this->_parameter()->filename
- .'.'
- .$this->_parameter()->mime
- )
- );
- }
Undefined
By: Guest | Date: Mar 21 2010 01:54 | Format: None | Expires: never | Size: 480 B | Hits: 931
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago