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:

Using WYMEditor with Dojo (by including jQuery when needed)

…1.7.2 jQuery: 1.7.1 WYMEditor: 1.0.0a5 require([‘dojo/DeferredList’, ‘dojo/io/script’], function(DeferredList, script) { // We don’t want to include things twice because it’s bad and breaks WYMEditor. var requireds = []; if (typeof…

Tags:
Categories: