PHP Classes

File: examples/development/handlers.php

Recommend this page to a friend!
  Classes of El Amrani Chakir   PHP AJAX Response Handler   examples/development/handlers.php   Download  
File: examples/development/handlers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP AJAX Response Handler
Process AJAX requests with response handlers
Author: By
Last change:
Date: 2 years ago
Size: 387 bytes
 

Contents

Class file image Download
<?php

use AmraniCh\AjaxDispatcher\Handler\Handler;

return [

   
Handler::get('getPosts', 'PostController@getPosts'),

   
Handler::many(['GET', 'POST'], 'getPost', 'PostController@getPost'),

   
Handler::post('createPost', 'PostController@createPost'),

   
Handler::put('updatePost', 'PostController@updatePost'),

   
Handler::delete('removePost', 'PostController@removePost'),
];