i was close with my weird trials, haha...

i appreaciate it j.blotus..thx

On 9 Sep., 18:05, "j.blotus" <[email protected]> wrote:
> //initialize folder
> $this->Folder = new Folder();
> //assign result of copy operation to variable (optional, but it's nice
> to check if operation was a success)
> $copied = $this->Folder->copy(array('to' => '/to/path/', 'from' => '/
> from/path/, 'chmod' => '755'));
>
> //check the operation
> if ($copied) {
>      //copied ok
>
> } else {
>     //copy failed
> }
>
> On Sep 9, 11:21 am, Tomfox Wiranata <[email protected]> wrote:
>
> > i just saw the parameter need to be an array
>
> > Folder::copy    (       $        options = array()       )
>
> > Parameters:
> >         array   $options (to, from, chmod, skip)
>
> > how would the code lool like?
>
> > thx

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to