The difference between windows and Linux
####### Code : (new \Phalcon\Mvc\Application($di))->handle()->getContent();
Hi,All!
I have a problem on linux system...
First of all,I have a controller file...
public function getAction()
{
return "f**k man~~~";
}
In the index.php file...
echo (new \Phalcon\Mvc\Application($di))->handle()->getContent();
So,output result as follow...
1.on windows(aphache)
"f**k man~~~"
2.but on linux(nginx),the result is a empty string~~~
~~if I modify the controller code...
public function getAction()
{
echo "f**k man~~~";
}
on the linux,the result is successful!
So,I found,on linux(nginx), the follow code return a empty string!
(new \Phalcon\Mvc\Application($di))->handle()->getContent();