Brimbox Logo Brimbox Version 2.3.4 Released


Method to check whether an included file exists, and if it does, whether or not it has syntax errors.

Class: bb_main, called as $main

File: bb_main.php (php)


function check_syntax($filepath)



Returns: String indicating the error if there is one, false if file exists and syntax is good.

Note: This method is primarily used in the controller to make sure the controller executes. It is also used during module installation.

Parameter: $filepath (string)
The relative path from the controller or the absolute path to the file.

Updated: 2016-06-16