Yes, in the webroot (or subfolder thereof). There is nothing special
needed to call it - just the direct URL. Cake's .htaccess files only
redirect a query through cake if the direct file doesn't exist.
I haven't had problems outputting excel files from a cake action
though, so it can be done. Just make sure you have
Configure::write('debug', 0)
to stop any cake debug logs, or php notices etc from messing up the
file format. And the usual headers of course. Oh, and if you are
rendering a view to generate the excel file, make sure your layout
isn't getting in the way.
On Oct 19, 4:42 am, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> On my dev servers, I am able to export to Excel with no troubles. In
> the production server, it just comes out as text directly in the web
> browser. So there seems to be something weird with that environment,
> and I assume the headers are not being written out properly.
>
> So, I built a little plain jane export.php script that establishes its
> own mysql connection and uses sql and echo to write the file out to
> Excel. And it works just fine.
>
> Where should I put this file in the /cake/app directory? In webroot?
> And is there a special way/url I should use to call/access it?
>
> Wayne
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---