Hi, I have the same issue here with Ubuntu server 12.04 PHP 5.4.11 and apache 2.
My application works very fine in my own environment, but when I put it online I get this error :
A dependency injection object is required to access internal services
I can't see what is wrong. I installed Phalcon and it's appear correctly in my phpinfo() loaded module.
Here's my index.php code :
<?php
error_reporting(E_ALL);
try {
/**
* Read the configuration
*/
$config = include __DIR__ . "/../app/config/config.php";
/**
* Read auto-loader
*/
include __DIR__ . "/../app/config/loader.php";
/**
* Read services
*/
include __DIR__ . "/../app/config/services.php";
/**
* Handle the request
*/
$application = new \Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();
} catch (\Exception $e) {
echo $e->getMessage();
}