Re: Render a View that's not HTML?

2007-09-08 Thread Jan Boonen
Did you try to create a new layout file for images? Put something like this in it (this one is for PDF, just change it for the image type you need): In your controller, you can render the alternative layout using the following statement: $this->render(null, 'pdf', VIEWS . DS . 'controllername' .

Re: Render a View that's not HTML?

2007-09-06 Thread John David Anderson (_psychic_)
On Sep 6, 2007, at 2:54 PM, bteeter wrote: > > I'm developing an app which is a set of business data in a MySQL > backend. One of the views I'd like to provide is a "graph it" view. > Basically I want to use Cake to get data into the Model and jpgraph to > create a graph. > > The code works, an

Render a View that's not HTML?

2007-09-06 Thread bteeter
I'm developing an app which is a set of business data in a MySQL backend. One of the views I'd like to provide is a "graph it" view. Basically I want to use Cake to get data into the Model and jpgraph to create a graph. The code works, and the page correctly works with jpgraph to create an image