Groups
Groups
Sign in
Groups
Groups
Limonade
Conversations
About
Send feedback
Help
XML CALLBACK
47 views
Skip to first unread message
Roberto Jimenez
unread,
Jun 28, 2012, 8:26:36 AM
6/28/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to limo...@googlegroups.com
I want that my application gives a xml callback.
The current php code for this is:
<?php
header("content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<Response>\n";
echo "<Dial>\n";
echo "<Number>
+34925364656
</Number> \n";
echo "</Dial>\n";
echo "<Say>This is Twilio</Say>\n" ;
echo "</Response>";
?>
But I can return this xml using limonade:
dispatch('/start', 'app_start');
function app_start() {
header("content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<Response>\n";
echo "<Say voice=\"man\" language=\"en\">"."bye"."</Say>\n" ;
echo "</Response>";
}
how can it be done???
Thanks a lot.
Zen Vantalye
unread,
Jun 29, 2012, 3:01:05 PM
6/29/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to limo...@googlegroups.com
You must use "return" instead "echo". You can't use many return in
single function.Limonade don't use ob_start and ob_get_clean to catch
data. See at
https://github.com/sofadesign/limonade/blob/master/lib/limonade.php#L429
.
Do you maybe try Slim framework? In my opinion it is better than Limonade.
Slim use ob_start to catch data and you give free -
https://github.com/codeguy/Slim/blob/master/Slim/Slim.php#L1138
.
2012/6/28 Roberto Jimenez <
totem...@gmail.com
>:
> --
> You received this message because you are subscribed to the Google Groups
> "Limonade" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/limonade/-/EL7DYV-B41EJ
.
> To post to this group, send email to
limo...@googlegroups.com
.
> To unsubscribe from this group, send email to
>
limonade+u...@googlegroups.com
.
> For more options, visit this group at
>
http://groups.google.com/group/limonade?hl=en
.
Reply all
Reply to author
Forward
0 new messages