PHP Classes

File: tests/src/response/TestCb.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   tests/src/response/TestCb.php   Download  
File: tests/src/response/TestCb.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 4 months ago
Size: 328 bytes
 

Contents

Class file image Download
<?php

use Jaxon\App\FuncComponent;

class
TestCb extends FuncComponent
{
    public function
simple()
    {
       
$this->response->alert('This is the global response!');
    }

   
/**
     * @throws Exception
     */
   
public function error()
    {
        throw new
Exception('This method throws an exception!');
    }
}