appExists() is used to check if a class exists
within the framework. If the class exists, a true value will be returned.
<?php
...
use Window;
Home extends Window {
function __construct() {
if( appExists('core\classes\Ajax') ) {
// do something ...
}
}
}
appExists() function uses directories format to find classes.
Rather than supply the full namespace of the class, only the directory path from the
root folder is supplied. If the class exists, a true value will be returned, else, a false
value will be returned.