Thanks Sam.
Actually, I already found the solution.
Instead of using
$this->render('action','excel');
in my controller, I used this following code:
$this->layout = 'excel';
$this->render();
I wonder why $this->render('action','excel'); won't work.
But I also don't think that this is a deprecated api.
On Sep 18, 3:47 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> have you tried using $this->log()
>
> and double check that App::import is calling the right file
>
> 2008/9/18 mario <[EMAIL PROTECTED]>
>
>
>
>
>
> > Thanks majna. But I can't set the debug mode to 1 since the script
> > will no longer run in 1.2
> > if I do that.
>
> > On Sep 18, 12:23 pm, majna <[EMAIL PROTECTED]> wrote:
> > > set debug mode to 1. maybe you get "missingAction" error form cake.
>
> > > On Sep 18, 7:07 pm, mario <[EMAIL PROTECTED]> wrote:
>
> > > > Hello guys,
>
> > > > I want to generate and excel spreadsheets based from my
> > > > database query and I've come across this tutorialhttp://
> > bakery.cakephp.org/articles/view/generate-excel-spreadsheets-f....
>
> > > > I've followed every instructions but I can't get it working.
>
> > > > I have a "reservations" contoller and it has a view called "report"
> > > > and two layouts "default.ctp" and "excel.ctp"
> > > > My default.ctp contains my main layout for html display and excel.ctp
> > > > contains the layout for rendering the excel file.
>
> > > > Everytime i visit the
> > linkhttp://localhost/{myproject}/reservations/report,
> > > > I get this error
>
> > > > Error: The requested address '/reservations/report' was not found on
> > > > this server.
>
> > > > I've tried things commenting out the line
> > > > $this->render('action','excel');
> > > > in my reservations controller (report function)
>
> > > > and renaming excel.ctp to default.ctp and everything works fine.
>
> > > > I think the problem has to do with rendering my layout and I just
> > > > can't find the solution for it.
> > > > Please help me since I'm already beyond my deadline in my project.
>
> > > > Thanks,
>
> > > > Mario
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---