-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.php
44 lines (29 loc) · 899 Bytes
/
app.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* ✨💥✨ </SPARK> ✨💥✨
* Simple.PHP.Ajax.Request.Kit
*
* Main application class
*
* @author Caspius Labs💖
* @link https://github.com/CaspiusLabs/SPARK
* @version 2.0.1
* @package App
*/
class App extends Spark {
function index() {
echo "This is default request index method!";
}
function ajax_index() {
echo "This is default ajax request index method!";
}
function test( $action, $param1='', $param2='' ) {
echo "This is test function called from query string and this is my values:";
self::Debug('$action', $action);
self::Debug('$params', $param1);
self::Debug('$params', $param2);
}
function ajax_test( $action, $params ) {
echo "This is test function called from ajax request.";
}
}