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' .
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
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