Ember.js with PHP

I can’t find a clear answer to this question anywhere, so here it is. Looking at Ember.js , it looks like you can only create a complete application with JavaScript, HTML, and CSS. My question is: is it advisable to do this? I do not see examples with PHP embedded in the JavaScript framework, so for me it seems like a deal with one or more. Is it correct?

+5
source share
2 answers

... PHP is integrated into the JavaScript framework ...

, ... PHP - , , , API REST PHP, Ember.js . , .

+9

PHP Emberjs, JQuery Ajax.

.

$.ajax ({
  type: "POST",
  url: "../model/my_model.php",
  data:{choosen_id: choosen_id,contact_age: contact_age },
    //data:"contact_id_choosen="+ choosen_id,
  }).done(function(data) {

  data_formated = '<div class="formated_data">'+data+'</div>';
  $(".dialog-window").html(data_formated);
    //return result
  }).fail(function(x,s,e) {
    alert(s+": "+e);
    alert('detail button failed!');
    //alert(result);
  });//$.ajax END

Ajax PHP EmberJS. , .

-1

All Articles