Код: Выделить всё
Edit
Код: Выделить всё
$scope.edit = function(id)
{
$http({
method : 'GET',
url: 'mycontroller/myfun',
}).then(function(data){
console.log(data);
$scope.form = data;
});
};
Код: Выделить всё
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
Мобильная версия