Giter Site home page Giter Site logo

yii-importcsv-extension's Introduction

About

ImportCSV is used for load positions from CSV file to database. This is an extension for Yii Framework.

Import occurs in three steps:

  1. Upload file;
  2. Select delimiters and table;
  3. Select mode and columns in table.

Module has 3 modes:

  1. Insert all - Add all rows;
  2. Insert new - Add new rows. Old rows remain unchanged;
  3. Insert new and replace old - Add new rows. Old rows replace.

All parameters from the previous imports will be saved in a special .php file in upload folder.

Requirements

Yii 1.1

Usage

  1. Copy all the 'importcsv' folder under /protected/modules;

  2. Register this module in /protected/config/main.php

    'modules'=>array( ......... 'importcsv'=>array( 'path'=>'upload/importCsv/', // path to folder for saving csv file and file with import params ), ...... ),

  3. Create a directory which you use in 'path'. Do not forget to set access permissions for directory 'path';

  4. The module is available here:

http://yourproject/importcsv.

Or here:

http://yourproject/index.php?r=importcsv.

Or somewhere else:-) It depends from path settings in your project;

  1. ATTENTION! The first row of your csv-file must will be a row with column names.

yii-importcsv-extension's People

Contributors

ardem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yii-importcsv-extension's Issues

Setup

My project separates the code into backend, common, console, and frontend, and I have installed the module in the module folder, a subfolder of the backend folder. When I try and access the module, I get an error that CWebModule can not be found.

I am not sure what I need to do to insure that following php code - class ImportcsvModule extends CWebModule will work.

Please note the the yii framework CwebModule class is located in the folder - \common\lib\Yii\web\CWebModule.

Any help would be greatly appreciated

Unable to find the wrapper

I get the following error when trying to upload a csv file.

move_uploaded_file() [function.move-uploaded-file]: Unable to find the wrapper "htttp" - did you forget to enable it when you configured PHP?

Can you explain to me what I need to fix to get this to run.

Thank you

Stuck after step 2 ;-(

It is possible to select csv file and opload but when clicking on button nothing happens.

The file is placed in uplod/importCsv but no screen with option to select.

Is there anyone who can solve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.