Hello all. I write simple example from documentation - https://docs.phalcon.io/en/latest/reference/tutorial.html#creating-a-project, but when i start looking in browser, phalcon get error - Exception: IndexController handler class cannot be loaded.
<?php
try {
$loader = new \Phalcon\Loader();
$loader->registerDirs(array(
'../app/controllers/',
'../app/models/'
));
$di = new Phalcon\DI\FactoryDefault();
$di->set('view', function () {
$view = new \Phalcon\Mvc\View();
$view->setViewsDir('../app/views');
return $view;
});
$di->set('url', function(){
$url = new Phalcon\Mvc\Url();
$url->setBaseUri('/phalcon/');
return $url;
});
$application = new Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();
} catch (\Phalcon\Exception $e) {
echo 'Exception: ', $e->getMessage();
}
```php<?php class IndexController extends \Phalcon\Mvc\Controller {
public function indexAction()
{
echo '<h1>Hello</h1>';
}
}
What I'm doing wrong? Thanks.
P.S. Using xampp 1.8.2.