03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

E-Commerce 248<br />

.<br />

This was extracted from app/routes.php.<br />

.<br />

You can learn more about controllers at: http://laravel.com/docs/controllers and more about<br />

routes at: http://laravel.com/docs/routing.<br />

We’ll deal with creating orders once we have the shopping and payment interfaces completed. Let’s<br />

not get ahead of ourselves…<br />

Creating The Site With AngularJS<br />

Will the API in place; we can begin the interface work. We’re using AngularJS, which creates rich<br />

interfaces from ordinary HTML.<br />

Creating The Interface<br />

AngularJS allows much of the functionality, we would previous have split into separate pages, to be<br />

in the same single-page application interface. It’s not a unique feature of AngularJS, but rather the<br />

preferred approach to interface structure.<br />

Because of this; we only need a single view:<br />

1 <br />

2 <br />

3 <br />

4 <br />

5 Laravel 4 E-Commerce<br />

6 <br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!