pepebe
5/4/2013 - 8:13 AM

Using phpthumb in a MODX CMP

Using phpthumb in a MODX CMP

        $modAuth = $this->modx->user->getUserToken('mgr');
  
            $thumbQuery = http_build_query(array(
                'src' => $image['urlAbsolute'],
                'w' => 360,
                'h' => 270,
                'HTTP_MODAUTH' => $modAuth,
                //'f' => $thumbnailType,
                'q' => 80,
                'wctx' => 'mgr',
                'zc' => 1
                //'source' => $this->get('id'),
            ));

            $thumb = $this->modx->getOption('connectors_url', null, MODX_CONNECTORS_URL).'system/phpthumb.php?'.urldecode($thumbQuery);