Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember.js with PHP

I can’t find a clear answer to this question anywhere so here it goes. Looking at Ember.js, it seems like you can build a full fledged application with just JavaScript, HTML, and CSS. My question is, is it advisable to do it that way? I see no examples with PHP integrated into the JavaScript framework so, to me, it seems like an either/or kinda deal. Is that right?

like image 829
MikeG Avatar asked Jun 21 '12 21:06

MikeG


People also ask

Is Ember js any good?

Ember. js is the best choice for long-term projects, single-page apps, online apps with native capabilities, programs that require an environment similar to Python, and apps with challenging functionality integration. Ember is used by several large companies in their software and applications.

Is Ember js frontend or backend?

There are a handful of libraries that inevitably enter this conversation, but Ember. js is one of the few frontend solutions that does a fantastic job at satisfying the needs and wants on all sides.

Is Ember js a JavaScript framework?

Ember. js is a JavaScript framework for creating ambitious web applications.


1 Answers

…PHP integrated into the JavaScript framework…

I don't know what kind of answer your are expecting here... As PHP is a server-side language, what I do is code my REST APIs on the server side in PHP, an all my application logic is written on Ember.js, and executed on the client. On another part, the server generates some of the needed handlebars templates, and serves them to the client on the first application load.

like image 199
dogawaf Avatar answered Oct 10 '22 19:10

dogawaf