glenelkins Posted June 5, 2009 Share Posted June 5, 2009 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 More sharing options...
Mark Baker Posted June 5, 2009 Share Posted June 5, 2009 First confirm what version of PHP you're actually running. i.e. a version that allows namespace Link to comment https://forums.phpfreaks.com/topic/161055-second-eye-needed/#findComment-849918 Share on other sites More sharing options...
glenelkins Posted June 5, 2009 Author Share Posted June 5, 2009 PHP Version 5.2.9 im not sure if it needs 5.3 ? Link to comment https://forums.phpfreaks.com/topic/161055-second-eye-needed/#findComment-849920 Share on other sites More sharing options...
Mark Baker Posted June 5, 2009 Share Posted June 5, 2009 PHP Version 5.2.9 im not sure if it needs 5.3 ?Correct, namespaces are only 5.3.0 or above Link to comment https://forums.phpfreaks.com/topic/161055-second-eye-needed/#findComment-849921 Share on other sites More sharing options...
glenelkins Posted June 5, 2009 Author Share Posted June 5, 2009 cheers! Link to comment https://forums.phpfreaks.com/topic/161055-second-eye-needed/#findComment-849927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.