Giter Site home page Giter Site logo

cakephp-excel's People

Contributors

robertpustulka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cakephp-excel's Issues

Graphs

It's possible to export other than data to file also a graph?

Export

Is there a possibility, of doing the process to the contrary, make a find in the table and write in the file? In the case it would be a data export

"The plugin class Robotusers\Excel\Plugin cannot be found. Ensure your autoloader is correct."

Hello,
I've followed your steps to get this plugin working with CakePHP 3.6, running PHP 7.2, those two first steps to get this excel plugin working.

All I keep getting is
The plugin class Robotusers\Excel\Plugin cannot be found. Ensure your autoloader is correct.

I executed
composer require robotusers/cakephp-excel

Added to config/bootstrap.php:
Plugin::load('Robotusers/Excel', [ 'bootstrap' => true, ]);

In my src/Application.php

public function bootstrap()
    {
        // Call parent to load bootstrap from files.
        parent::bootstrap();
        $this->addPlugin('Robotusers/Excel');
    }

In my controller:

public $helpers = ['Cewi/Excel.Excel'];

public function excel()
        {
            $registry = Registry::instance();
            $table = $registry->get('records.xlsx', 'efproducts_products', [
                'primaryKey' => 'id',
                'columnMap' => [
                    'A' => 'project_name',
                    'B' => 'ef_type',
                    'C' => 'product_description'
                ]
            ]);
        }

But I keep getting the error explained above.
What am I missing?

Thank you,
James

Error: The datasource configuration excel was not found in config\app.php

Hi,
I'm following the first steps to get the plugin working, but I'm receiving an error message Error: The datasource configuration excel was not found in config\app.php. Could someone help me to understand what is wrong?

This is my snippet code

use Robotusers\Excel\Registry;

...

$registry = Registry::instance();
$table = $registry->get($filePath, 'Clientes');
$row = $table->find()->first()->toArray();
print_r($row);

Create Excel file on the fly

Friend It is not an issue, I want to know how i can use this plugin to generate excel file on the fly. I do not want to save file on server. It take data from database and write in spreadsheet and available user for download

Your quick response is appricited

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.