Sami Greenbury
Technology, Teaching & Travel

Magical Image Resizing URL’s with Zend_Framework (and cached for Apache)

…public function thumbAction() { $this->view->layout()->disableLayout(); $options = $this->_helper->container->get(‘options’); $fileName = $this->getRequest()->getParam(‘file’); $subdir = $this->getRequest()->getParam(‘subdir’); $width = $this->getRequest()->getParam(‘width’); $height = $this->getRequest()->getParam(‘height’); $cacheUrlPrefix = $options[‘cache’][‘publicDir’]; $cachePathPrefix = $options[‘cache’][‘dataDir’]; $dataPathPrefix = $options[‘data’][‘dataDir’]; $fileName…

Tags:
Category: