![Picture of Tomas Pavlatka Picture of Tomas Pavlatka](/picture/user/441114.jpg)
Tomas Pavlatka - 2015-03-19 03:06:48 -
In reply to message 1 from Ernie
Hi,
I'd say you are using server with old version of PHP. PHP < 5.3. Is this correct?
use \Ptx\Snake.php is just to use namespace which came with PHP 5.3 - have a look here http://php.net/manual/en/language.namespaces.rationale.php
You can remove it, do following.
// index.php
- remove require_once './bootstrap.php';
- remove use \Ptx\Snake
- add require_once './classes/Snake.php';
// classes/Snake.php
- remove namespace PTX;
Try it again and let me know.