can you show the code so that we can recognize the problem
On Fri, May 20, 2011 at 6:52 PM, lvdb <[email protected]> wrote:
> I've got an error "Invalid argument supplied for foreach() [APP
> \app_controller.php, line 58]".
>
> Is the backslash after webroot wrong?
> How can i change this because in the code i don't use it.
> Thank you in advance for your reply.
>
> This is the message:
>
>
> $folder = "img/files"
> $formdata = null
> $itemId = null
> $folder_url =
> "C:\xampp\xampp\htdocs\contracten\app\webroot\img/files"
> $rel_url = "img/files"
> $permitted = array(
> "image/gif",
> "image/jpeg",
> "image/pdf",
> "image/doc"
> )
>
> // loop through and deal with the files
> foreach($formdata as $file) {
>
> AppController::uploadFiles() - APP\app_controller.php, line 58
> ContractenController::add() - APP\controllers
> \contracten_controller.php, line 18
> Object::dispatchMethod() - CORE\cake\libs\object.php, line 115
> Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 226
> Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 193
> [main] - APP\webroot\index.php, line 87
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php