News Feed
Jobs Feed
Sections




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

Gonzalo Ayuso:
Dynamic routes with AngularJS and Silex
July 10, 2013 @ 10:58:11

Gonzalo Ayuso has a new post today showing how to set up dynamic routing for a Silex-based application using an AngularJS frontend.

These days I'm playing with AngularJS. Today I want to experiment with dynamic routes. Let me show your an example. It's very simple but: What happens if our application is big and it grows fast? We need to add new lines and reload the browser. With AngularJS we can add paramenters to the routes.

He shows how to work with these route parameters and how to use the partial in a DynamicController. He also gives some sample PHP code showing how it all works together with Silex and a Twig provider. The Twig provider changes the tags that it looks for away from the curly braces to the square ones (Angular uses the same tags for its templates too so they'd get confused otherwise).

0 comments voice your opinion now!
silex angularjs dynamic routing tutorial

Link: http://gonzalo123.com/2013/07/08/dynamic-routes-with-angularjs-and-silex

blog comments powered by Disqus

Similar Posts

Stubbles Blog: Dependency Injection for static methods

Artur Ejsmont's Blog: How to build mongodb pecl extension in 32bit for PHP 5.2 on OSX Snow Leaopard

Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper

Developer Tutorials Blog: SimpleTest: Unit Testing for PHP

Till Klampaeckel: Continuous Integration: Automated database setup with Doctrine on Travis-CI


Community Events











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


application hack composer podcast hhvm unittest framework facebook performance introduction symfony2 install component database package opinion security release language support

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