Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
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

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Host1Plus.com - Web Hosting -50% | VPS From Hosting $2 | Dedicated Servers From $55 Aurimas Post your ad here 2 07-07-2016 10:11 PM
Host1Plus.com - Save 30% on Web Hosting |15% on VPS hosting Aurimas Post your ad here 0 03-21-2016 06:51 AM
Host1Plus.com - Web Hosting -30%| VPS -15%| Reseller from $20.00/mo Aurimas Post your ad here 0 03-01-2016 01:33 AM
Host1Plus.com | Quality International VPS Hosting with 24/7 Support from $0.75/mo Aurimas Post your ad here 0 08-13-2015 05:40 AM
attractive THANKGIVING offers with a coupon code KVChosting The Market 0 11-16-2012 06:21 AM


All times are GMT -7. The time now is 08:01 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.