Function : appExists

This function appExists() is used to check if a class exists within the framework. If the class exists, a true value will be returned.

sample appExists: Home
  <?php 

  ... 

  use Window;

  Home extends Window { 


    function __construct() {

      if( appExists('core\classes\Ajax') ) {

        // do something ...

      }

    }


  }
                  
The 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.