php - Map URL with Method in Tonic? -


i want map url tonic, how can that? there particular doc can? except api doc, because have read it's api there no docs that?

for example here class

    /**  * display , process html form via http post request  *  * page outputs simple html form , gathers posted data  *  *  *  *  * @uri /example/getexample/:name       * @uri /example/getexample/           *   * @uri /example/:name  *   */  class example extend resource{      /**      *        * handle request resource      * @method      * @param request $name      * @return str      */     function getexamplemethod1($name=null) {         return json_encode(array('status'=>'done method 2'));     }      /**      *       * handle post request resource      * @method      * @param request $name      * @return str      */     function getexamplemethod2($name=null) {         if($name == null){             return json_encode(array('status'=>'done1'));         }         else{             return json_encode(array('status'=>'done1', 'name'=>$name));         }     }     } 

i want call method in url how can that?


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -