News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Integrating Polymer/Dart and Symfony - Part 2
January 21, 2014 @ 13:05:11

On SitePoint's PHP blog Taylor Ren has posted the second part of his series looking at integrating Polymer/Dart and the Symfony framework to make a simple browser-based widget. The first part of the series can be found here.

If the server (and thus the configuration, the programming) is managed by ourselves, the process to get data from a RESTful API from that same server will be simple. We can enable CORS in the returned response header. Done! But if the remote server's RESTful API does not set that header, we will face a CORS error when we try to invoke that API call from within the Dart app.

He offers one solution - JSONP - but dismisses it because of its "hacky nature". Instead he opts to use the PHP (Symfony) side to grab the data from the remote feeds and pull it into the local domain for the widget to fetch. Code for both the client side and server side functionality are included as well as the HTML markup to create the page for the widget.

0 comments voice your opinion now!
polymer dart tutorial symfony javascript part2 widget

Link: http://www.sitepoint.com/integrating-polymerdart-symfony-part-2

blog comments powered by Disqus

Similar Posts

Alex Simonenko's Blog: Installing PHP 5.3.6 on OS X Lion

SitePoint Design & Layout Blog: Expression Web 3 - Your New PHP Tool Kit

DeveloperTutorials.com: PHP Debugging with Zend Studio

PHPBuilder.com: Create PHP Voice Recognition Apps on the Cheap

Internet.com: Plotting Map Markers Dynamically Using the Google Maps API, jQuery, PHP, and MySQL


Community Events





Don't see your event here?
Let us know!


library tips series introduction podcast symfony package api list deployment interview laravel language voicesoftheelephpant community install framework opinion bugfix release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework