We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Not work handle() in tutorial

Hi. I have some problems with tutorial https://docs.phalcon.io/en/latest/reference/tutorial.html My server: CentOS 6.8(Final) PHP 7.0.9 httpd 2.2.15 Phalcon 3.0 and 2 Gb RAM

I have error on this line code $response = $application->handle(); and get ERR EMPTY RESPONSE in my browser. which is not so in the example??

I do not make changes to the code of the example!



85.5k

Check php logs then, you didn't post content of error too :)

Ok, clone simple mvc template, replace my files and restart. I get HTTP ERROR 500, log have errors: Uncaught Error: Class 'DI' not found =( ok, connect DI. Restart. Now i have Uncaught Error: Class 'Application' not found =( ok, connect Application class. Restart. Get ERR EMPT RESPONSE

edited Aug '16

What you mean connect DI connect Application etc ? And you have no log error ? Waht about just echo $application->handle()->getContent(); ?



85.5k

do you see phalcon in phpinfo btw ?

or perhaps an \ ?

$application = new \ Phalcon\Mvc\Application($di);