I had a little trouble installing Phalcon, but now I think I've got things up and running and it appears to all be installed right (I think). I checked and the phalcon.so extension is getting loaded. I was just testing out the first tutorial and copied the code for the bootstrap.php file and it throws a 500 http error, and when I look at the log file it just says.
mod_fcgid: stderr: PHP Fatal error: Class 'Phalcon\Loader' not found in /home/user/public_html/index.php on line 5
Here's the code for that file. (line 5 is $loader = new \Phalcon\Loader();)
<?php
try {
//Register an autoloader
$loader = new \Phalcon\Loader();
$loader->registerDirs(array(
'../app/controllers/',
'../app/models/'
))->register();
//Create a DI
$di = new Phalcon\DI\FactoryDefault();
//Setting up the view component
$di->set('view', function(){
$view = new \Phalcon\Mvc\View();
$view->setViewsDir('../app/views/');
return $view;
});
//Handle the request
$application = new \Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();
} catch(\Phalcon\Exception $e) {
echo "PhalconException: ", $e->getMessage();
}
?>
There just isn't enough noobs like me posting these dumb questions. I'm really interested in testing out Phalcon as a framework, just need to get the dang thing to work.