If you're using the MVC you can use the request object:-
<?php
class FeedController extends Zend_Controller_Action
{
public function submitAction()
{
$xml = $this->getRequest()->getPost('data');
// ...process $xml ...
}
}
So your flash file would post to http://your-site/feed/submit
I am writing a ZF application to process some xml sent to me by a
flash
client.
Normally, I would this via:
$xml_str=file_get_contents("php://input");
to access the raw POST variables which would kickoff whatever
processing and
response I would need sent out. It doesn't look like there is an
intuitive
way to access this via ZF. How would someone suggest that I access
the raw
POST?
I thought maybe Zend_Feed would be helpful but it looks like if I'm
outside
RSS or Atom, they won't help much. I'll probably just have a
process xml
funciton that uses simplexml to go through the request and XMLWriter
to
output information.
-jonathan
--
View this message in context:
http://www.nabble.com/accessing-file_get_contents%28%22php%3A--input%22%29--for-a-controller-action-to-process-tp16458074p16458074.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com