We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can not use the method "import", it always returns "false" this is my code: if($this->request->is('post')){ $content = file_get_contents($this->request->data["csv"]["tmp_name"]); file_put_contents(WWW_ROOT."files".DS."{$this->request->data["csv"]["name"]}", $content); $fields = array( "Model.colum", "Model.colum", "Model.colum", "Model.colum" ); // attempt1 $this->data = $this->Csv->import($this->request->data["csv"]["tmp_name"], $fields); // attempt2 $this->data = $this->Csv->import($content, $fields); // attempt3 $this->data = $this->Csv->import(WWW_ROOT."files".DS."{$this->request->data["csv"]["name"]}", $fields); debug($this->data); echo '<pre>';var_dump($this->data);echo '</pre>'; }
The text was updated successfully, but these errors were encountered:
The error was caused by the path that the plugin uses to read the file. I forced the change of path for what I needed and all went well
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: