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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to