Open ra7bi opened 7 years ago
Can you provide the stacktrace for the error, and potentially a screenshot, as well as your configuration?
Error :
in my bootstrap
Plugin::load('CakeExcel', ['bootstrap' => true, 'routes' => true]);
in my AppController
$this->loadComponent('RequestHandler', [ 'viewClassMap' => ['xlsx' => 'Cewi/Excel.Excel'] ]);
in my Route.php
Router::extensions('xlsx');
Then my template is like the following
And my Layout
my composer
{ "name": "cakephp/app", "description": "CakePHP skeleton app", "homepage": "http://cakephp.org", "type": "project", "license": "MIT", "require": { "php": ">=5.6", "cakephp/cakephp": "3.4.*", "mobiledetect/mobiledetectlib": "2.*", "cakephp/migrations": "~1.0", "cakephp/plugin-installer": "*", "dakota/cake-excel": "^2.0", "Cewi/Excel": "dev-master" }, "require-dev": { "psy/psysh": "@stable", "cakephp/debug_kit": "~3.2", "cakephp/bake": "~1.1" }, "repositories": [ { "type": "vcs", "url": "https://github.com/cewi/excel" } ] , "suggest": { "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.", "phpunit/phpunit": "Allows automated tests to be run without system-wide install.", "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP." }, "autoload": { "psr-4": { "App\\": "src" } }, "autoload-dev": { "psr-4": { "App\\Test\\": "tests", "Cake\\Test\\": "./vendor/cakephp/cakephp/tests" } }, "scripts": { "post-install-cmd": "App\\Console\\Installer::postInstall", "post-create-project-cmd": "App\\Console\\Installer::postInstall", "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump", "check": [ "@test", "@cs-check" ], "cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", "cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", "test": "phpunit --colors=always" }, "prefer-stable": true }
im using CakeExcel and it's working if i use xls extiontion but throwing exception if i use xlsx
exception is :
Could not close zip file php://output.
Thanks