PHP Classes

File: tests/config/app/functions.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   tests/config/app/functions.php   Download  
File: tests/config/app/functions.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: 780 bytes
 

Contents

Class file image Download
<?php

$defsDir
= realpath(__DIR__ . '/../../src');
require_once
"$defsDir/classes.php";

return [
   
'app' => [
       
'functions' => [
           
'my_first_function' => "$defsDir/first.php",
           
'my_second_function' => [
               
'alias' => 'my_alias_function',
               
'upload' => "'html_field_id'",
            ],
           
'myMethod' => [
               
'alias' => 'my_third_function',
               
'class' => Sample::class,
            ],
        ],
    ],
   
'lib' => [
       
'core' => [
           
'debug' => [
               
'on' => false,
            ],
           
'request' => [
               
'uri' => 'ajax.php',
            ],
           
'prefix' => [
               
'function' => 'jxn_',
            ],
        ],
    ],
];