Hi, I am sending emails via a batch script. I need to send parameters to the email module via request params or attributes...
It sends the data but gives warnings like - PHP Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/ request/sfWebRequest.class.php on line 384 Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/ request/ sfWebRequest.class.php on line 384 PHP Notice: Undefined index: SERVER_PORT in /usr/share/php/symfony/ request/sfWebRequest.class.php on line 406 On Mar 26, 4:31 pm, Sumedh <sumedh.inam...@gmail.com> wrote: > Hi Friends, > > I am using Symfony 1.0. This is a problem discussed in other places on > the forum but I didn't get a concrete answer... > > I am sending emails via a batch script. > > I need to send parameters to the email module via request params or > attributes... > > It sends the data but gives warnings like - > > PHP Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/ > request/sfWebRequest.class.php on line 384 > Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/request/ > sfWebRequest.class.php on line 384 > PHP Notice: Undefined index: SERVER_PORT in /usr/share/php/symfony/ > request/sfWebRequest.class.php on line 406 > > And so on... > > This happens because there is no http request for CLI... > > So, how can I overcome this problem? How do I define another > environment like 'batch' and still use sfRequest class for sending and > receiving parameters? > > I can of course put everything in DB and then fetch it back in the > mail module...but that's convoluted... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---