Как обновить запись в codeIgniter с помощью angularjs [закрыто]Php

Кемеровские программисты php общаются здесь
Anonymous
Как обновить запись в codeIgniter с помощью angularjs [закрыто]

Сообщение Anonymous »

Я создал одну функцию
перейти к контроллеру AngularJS

Код: Выделить всё

$scope.edit = function(id)
{
$http({
method : 'GET',
url: 'mycontroller/myfun',

}).then(function(data){
console.log(data);
$scope.form = data;
});
};
доступ в mycontroller/myfun

Код: Выделить всё

public function myfun(id)
{
$q = $this->db->get_where('tablename', array('school_ID' =>
id));
echo json_encode($q->row());
}
В чем проблема

Подробнее здесь: https://stackoverflow.com/questions/431 ... -angularjs

Вернуться в «Php»