hello fellows,

is there any possibility to parse an url with xls extensions? Ive tried with
pdf it works, but If I try with xls nothing happens.
In my routes.php

Router::parseExtensions('pdf', 'xls');

Router::connect(
        '/mcontrollers/view/:id',
        array('controller' => 'mcontrollers', 'action' => 'view'),
        array(
            'pass' => array('id')
        )
    );

the link

echo $html->link('Export in xls', array('controller' => 'mcontrollers',
'action' => 'view', 'id' => $id , 'ext' => 'xls'))

I ve also tried to set the content type with requesthandler component but,
again, nothing happens ($this->RequestHandler->setContent('xls'
,'application/vnd.ms-excel');)!

thanks in advance.

-- 
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to