Well, when I call the URL of the action (eg
http://.../frontend_dev.php/offer/thumb?offer_id=1)
all I get is a text message: "
http://karhabti/frontend_dev.php/offer/thumb?offer_id=1" instead of the
expected image.
On Fri, Nov 7, 2008 at 11:04 PM, Kiril Angov <[EMAIL PROTECTED]> wrote:
>
> Elaborate on that "doesn't work" means.
>
> On Fri, Nov 7, 2008 at 10:29 PM, Samir <[EMAIL PROTECTED]> wrote:
> > Hello guys,
> >
> > any idea why does action, which returns an image doesn't work anymore
> under
> > Symfony 1.2 (it worked fine under SF 1.1) ?
> > I checked the Propel Query and it's is still working ...
> >
> > public function executeThumb($request)
> > {
> > $image =
> >
> PicturePeer::getMainPictureByOfferId($this->getRequestParameter('offer_id'))->getPicture();
> > $response = $this->getResponse();
> > $response->clearHttpHeaders();
> > $response->setContentType('image/jpeg','1','1');
> > $response->setContent($image);
> > return sfView::NONE;
> > }
> >
> > regards Samir
> >
> > >
> >
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---