Skip to content

Instantly share code, notes, and snippets.

@styks1987
Last active December 13, 2015 23:08
Show Gist options
  • Save styks1987/4989044 to your computer and use it in GitHub Desktop.
Save styks1987/4989044 to your computer and use it in GitHub Desktop.
before save
if(!empty($this->data['Image']['img_src_x1'])){
$options['transforms']['thumb']['location'] = array_values($this->data['Image']);
}
return $options;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment