Re: CakePHP-Upload Plugin > FileImportBehavior: How to use ?

2015-01-17 Thread Salines
I ask the same question here

 
http://stackoverflow.com/questions/27999313/cakephp-upload-plugin-programmatic-file-retrieval-without-a-form

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP-Upload Plugin > FileImportBehavior: How to use ?

2015-01-17 Thread Salines
Programmatic File Retrieval without a Form


http://cakephp-upload.readthedocs.org/en/latest/examples.html#programmatic-file-retrieval-without-a-form

Can someone tell me what it means and how to set up $image_url, whether it 
is a local file or from a remote server?

When I save the article, at the same time save the images in attachmen 
model.

Relationships: Article hasMany Attachments



Article->set(array('file' => *$image_url*)); // ?
$this->Article->save();
?>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP-Upload Plugin > FileImportBehavior: How to use ?

2015-01-11 Thread Salines
Hi people,

How to use cakephp upload plugin, and import behavior ( 
https://github.com/josegonzalez/cakephp-upload ) to handle the existing 
images and save their name into database?

I have a task to migrate data and images from joomla cms into custom CMS 
built into CakePHP.

In joomla cms many articles contain embedded images, into future images 
reside in a separate models (post hasmany images).

The task is to find the img tag into each post, and extract the path to the 
image, then take a picture with that path as the source, then create 
several images in different dimensions and save the image name into 
database.

The only thing I do not know if we can use for this purpose ImportBehavior, 
and how?

thank you

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.