This question already has an answer here:
Location public_html/application/modules/access_permissions/controllers/AdminAccessPermissions.php
namespace Pg;
class modules\access_permissions\controllers\AdminAccessPermissions
{
/**
* Module URL
*
* @var string
*/
public $module_url;
/**
* Controller
*/
public function __construct()
{
i am my php editor says that Syntax error , unexpected T_NS_Separator, expecting '{'
class modules\access_permissions\controllers\AdminAccessPermissions
Im useing php 5.6 Codeigniter 1.7.0
</div>
You can't have backslashes in PHP class names.
The class name can be any valid label, provided it is not a PHP reserved word. A valid class name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: ^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$.
See: https://secure.php.net/manual/en/language.oop5.basic.php
The class name should most likely be AdminAccessPermissions
and the rest of it probably should be in the namespace declaration.