[symfony-users] Re: serve http://mysite.com/random.gif

2009-10-22 Thread Eno
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

[symfony-users] Re: serve http://mysite.com/random.gif

2009-10-22 Thread noel guilbert
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

[symfony-users] Re: serve http://mysite.com/random.gif

2009-10-22 Thread Sameer I
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