Public paste
Undefined
By: Guest | Date: Mar 21 2010 01:54 | Format: None | Expires: never | Size: 480 B | Hits: 863

  1. <?PHP
  2.  
  3.                 public function LayoutImage_Action()
  4.                 {
  5.                         $this->_view()->headContentType($this->_parameter()->mime);
  6.                         $this->_view()->header('Content-Disposition', 'filename=test.png;');
  7.                         $this->_view()->headDisableLayout();
  8.                         $this->_view()->assign
  9.                         (
  10.                                 'content',
  11.                                 file_get_contents
  12.                                 (
  13.                                         $this->_root->Boot->System->Registry->get()->APP_DIR->IMAGES
  14.                                                 .$this->_parameter()->filename
  15.                                                 .'.'
  16.                                                 .$this->_parameter()->mime
  17.                                 )
  18.                         );
  19.                 }