The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

how to send param from api to slim

Athrun's Avatar


18 Aug, 2015 02:38 AM

my from .html
<form name="myForm" >
       User name:
       <input type="text" ng-model="" >
<button ng-click="getlogin(here)">Click!!!!</button>

app .js
$scope.getlogin = function (here) {
$scope.std = data;
        .error(function (data) {
          $scope.error = status;

  function getLogin($id) {
  $sql="SELECT * from std where id=$id";
  echo json_encode(getConnection()

error 404 not found, help pls

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac