hi , i installed phalcon in centos and in php info page everything look fine . but when i go to url i get this error in apache log :
[Tue Dec 30 04:05:15 2014] [error] [client 91.98.118.172] PHP Parse error: syntax error, unexpected '[', expecting ')' in /var/www/html/app/config/loader.php on line 20
this is my loader.php :
<?php
$loader = new \Phalcon\Loader();
try
{
$loader->registerDirs(
array(
$config->application->controllersDir,
$config->application->modelsDir,
$config->application->configDir,
$config->application->messagesDir,
$config->application->componentDir,
$config->application->libraryDir
)
);
$loader->registerClasses(['Component\Helper' => $config->application->helperAddrees]);
$loader->register();
}
catch (\Phalcon\Exception $e)
{
echo get_class($e), ": ", $e->getMessage(), "\n";
echo " File=", $e->getFile(), "\n";
echo " Line=", $e->getLine(), "\n";
echo $e->getTraceAsString();
}
my site works fine on ubuntu server .
i don't know what is the problem