addisoncave
Active Member
my php interpreter returning giving the error while executing the following code
I need Config.php to get database access so i could get the name of theme
PHP:
<?php/* *@Package Name: lib/includes.php *@Date(Last Modified): Tue, Sept 6 - 2016 */
namespace lib\includes{ class accessControl { private function init() { define('DS',DIRECTORY_SEPARATOR); define('ROOT',getcwd().DS); /* * @var THEME_NAME has been Fetch from Database */ define('THEME_NAME',''); define('THEME_PATH',ROOT.'mads-content'.DS.'mads-themes'.DS.THEME_NAME.DS); define('CONTROL_PATH',ROOT.'mads-admin'.DS.'contoller'.DS); define('MODEL_PATH','mads-admin'.DS.''.DS);
} }
}include_once("config.php");?>
fetal error on line 30 of include.php "No code may exist outside of namespace"