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()->setContentType('image/gif');
> $im = imagecreatetruecolor(100, 100);
> imagegif($im);
> imagedestroy($im);
> exit;
> }
You might also need to modify your .htaccess so it lets parameters for
that specific URL through to the controller.
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---