Skip to content
New issue

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

Having problems with my luiggio/excelbundle #65

Closed
RodolVelasco opened this issue May 23, 2014 · 1 comment
Closed

Having problems with my luiggio/excelbundle #65

RodolVelasco opened this issue May 23, 2014 · 1 comment

Comments

@RodolVelasco
Copy link

Hi,

Hope you can help right now Im stuck with this.

When I'm trying to export an excel file created from my controller my app show me this

You have requested a non-existent service "xls.service_xls5".

This is my composer.json
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.
",
"twig/extensions": "1.0.",
"symfony/assetic-bundle": "2.3.
",
"symfony/swiftmailer-bundle": "2.3.",
"symfony/monolog-bundle": "2.3.
",
"sensio/distribution-bundle": "2.3.",
"sensio/framework-extra-bundle": "2.3.
",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"apy/datagrid-bundle": "dev-master",
"friendsofsymfony/user-bundle": "~2.0@dev",
"liuggio/excelbundle": ">=1.0.4",
"mbence/opentbs-bundle": "dev-master"
},

This is a picture of my vendors luiggio route " \vendor\liuggio\ExcelBundle\Liuggio\ExcelBundle "

http://prntscr.com/3lyas3

this is the part of the code I'm getting the error

public function xcelAction(Request $request)
{
if($request->query->get('contrato')){
$contrato = $request->query->get('contrato');
$myTable = $this->Genera_MatrizTipoA($contrato);
}else{
$anio = $request->query->get('anio');
$myTable = $this->Genera_MatrizTipoB($anio);
}

// ask the service for a Excel5
    $excelService = $this->get('xls.service_xls5');
@liuggio
Copy link
Owner

liuggio commented May 23, 2014

please read the https://github.com/liuggio/ExcelBundle#tldr
the api were changed almost one year ago

@liuggio liuggio closed this as completed May 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants