Jump to content

second eye needed


glenelkins

Recommended Posts

hi

 

can anyone see whats wrong with the following code, i cant! i get this error:

 

Parse error: syntax error, unexpected T_STRING in /home/clients/public_html/cms/application/Classes/core.namespace.php on line 2

 

<?php
namespace CMS::Core;

Abstract class Controller {

protected $registry;
protected $db; // database object
protected $config;
protected $loader;
protected $shared;

function __construct ( $registry) {

	// Save regisrty
	$this->registry = $registry;
	$this->db = $registry->db;
	$this->config = $registry->config;
	$this->loader = $registry->loader;
	$this->shared = $registry->shared;




}

Abstract function index();

}

?>

Link to comment
https://forums.phpfreaks.com/topic/161055-second-eye-needed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.