On Thu, 22 Oct 2009, noel guilbert wrote:
> Hello,
>
> In your routing.yml, you can a this rule:
>
> random_image:
> url: /random.gif
> param: { action: image, action: random }
>
> And in your imageActions class:
>
> public function executeRandom()
> {
>$this->getResponse()->setConten
Hello,
In your routing.yml, you can a this rule:
random_image:
url: /random.gif
param: { action: image, action: random }
And in your imageActions class:
public function executeRandom()
{
$this->getResponse()->setContentType('image/gif');
$im = imagecreatetruecolor(100, 100);
imagegi
Some more information would apt.
random.gif is not a static image. It is being generated dynamically. The
parameters provided in query string will decide the image generation which
will vary.
This makes it necessary that I serve this image using a symfony action.
-Strike
On Thu, Oct 22, 2009 at