/** * Executes delete image action. */ public function executeRefreshImages() { try { $imageList = new w3sImageListVertical(w3sCommonFunctions::buildFilesList(sfConfig::get('app_images_path'), '', array('gif', 'jpg', 'jpeg', 'png')), ''); return $this->renderText($imageList->renderImageList()); } catch (Exception $e) { return $this->renderText('Something was wrong while refreshing images lists.'); } }
/** * Draws a list of images * * @return string * */ protected function drawImagesList() { $imageList = new w3sImageListVertical(w3sCommonFunctions::buildFilesList(sfConfig::get('app_images_path'), '', array('gif', 'jpg', 'jpeg', 'png')), basename($this->attributes["fullImagePath"])); return $imageList->renderImageList(); }