[symfony-users] isXmlHttpRequest from a PHP template

2011-05-06 Thread abernier
Hi, What is the PHP version of a such twig expression: {% extends ajax ? MyBundle::layout2.html.php : MyBundle::layout.html.php %} I can think of : ?php $view-extend($view['request']-isXmlHttpRequest() ? MyBundle::layout2.html.php : MyBundle::layout.html.php) ? but not sure since

[symfony-users] Re: isXmlHttpRequest from a PHP template

2011-05-07 Thread abernier
It's now working :) Thanks a lot. On May 7, 11:42 am, Christophe COEVOET s...@notk.org wrote: Le 07/05/2011 11:39, abernier a crit : Hey, Thanks for the answer. I tried with: ?php if (!$app-isXmlHttpRequest()): $view- extend('MyBundle::layout.html.php'); endif

[symfony-users] ReSTful canvas symfony application

2011-06-10 Thread abernier
Hi, As you may know, in order to pass user's information(signed_request) to your app, Facebook access canvas(ie: iframe) applications by sending them a POST request. This mechanism is explained here: http://developers.facebook.com/docs/guides/canvas/#auth In order to keep ReSTful, what would the