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

First app error

Please explain to me this code:

$loader = new \Phalcon\Loader();    
$loader->registerDirs(array(
        '../app/controllers/',
        '../app/models/'
))->register();

It's raise syntax error, but when I change to

$loader = new \Phalcon\Loader();    
$loader->registerDirs(array(
        "../app/controllers/",
        "../app/models/"
))->register();

It's ok. why when I use ' ' it shows an error

There really shouldn't be any difference between the two.

Are you sure you used normal single quotes for the first version?