Jump to content
Robert1995

Aurigma Express Integrare

Recommended Posts

Posted

Doua zile mi-am mancat nervi incercand sa integrez Aurigma Versiunea Express

In PHP. Folosind Zend ca framework . Sugestii cum as putea reusi ?

Am reusit sa fac `sa se vada` dupa ore intregi de nervi cu java.Dar am probleme la upload.php care arata asa :

Note : E Action din Controller


function onFileUploaded($uploadedFile) {
$absGalleryPath = realpath($this->_path) . DIRECTORY_SEPARATOR;
$originalFileName = $uploadedFile->getSourceName();
$files = $uploadedFile->getConvertedFiles();
// Save source file
$sourceFile = $files[0];
/* @var $sourceFile ConvertedFile */
if ($sourceFile) {
$sourceFile->moveTo($absGalleryPath . $originalFileName);
}
}

/**
*
* Admin_ProductController::uploadImagesAction()
* Display Aurigma Uploader.
*/
public function uploadImagesAction(){

$this->_session->message = $this->_session->messages['message_backend_product_image_notification_succesfully_added'];

require_once ROOT_PATH . "/Aurigma/ImageUploaderPHP/UploadHandler.class.php";
require_once ROOT_PATH . "/Aurigma/ImageUploaderPHP/UploadedFile.class.php";

$product_id = $this->_getParam('prod');
$product = Model_Product::getById($product_id);
$this->_path = "images/products/".$product['id']."/";
$uploadHandler = new UploadHandler();

$uploadHandler->saveFiles(realpath($this->_path));

$uploadHandler->setFileUploadedCallback('onFileUploaded');

$uploadHandler->processRequest();
}

Orice sugestii sunt bine venite :) .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...