0

I came across a tutorial where they're naming api function like public function signup_post()

But at the calling time they're just calling it via signupkeyword like this baseurl/signup in rest client and it works fine. How's that possible? What does that _post do?

StefanM
  • 797
  • 1
  • 10
  • 17
Parth Goswami
  • 323
  • 4
  • 16
  • is this wordpress? _post doesn't really mean much without context – Farkie Sep 12 '16 at 07:40
  • No, it's an API for android app for signup & login purposes where they've make it work like that – Parth Goswami Sep 12 '16 at 07:48
  • 1
    that's called url routing , find out which code shoud be executed on which url, various implementations – cske Sep 12 '16 at 07:56
  • @cske could you recommend me some site or tutorial for that purpose. That would be great. – Parth Goswami Sep 12 '16 at 08:09
  • @Parth just google it, plenty of implementations, liblaries, tutorials [or this question](http://stackoverflow.com/questions/13432016/building-a-php-router) – cske Sep 12 '16 at 08:35

0 Answers0