View Single Post
Old 09-07-2016, 10:28 PM   #1
addisoncave
Registered User
 
Join Date: Jun 2016
Posts: 169
why this code is not working?

Hi guys I'm working with following codes and it's not working and returning a fetal error that anything must not written outside name space

PHP Code:
<?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");
?>
How to fix this?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
addisoncave is offline   Reply With Quote