I 've used tutorial on a simple rest api to create one and now i would like to place services to config folder, routes to routes.php under config folder as in the general application(not micro), to make index.php like this:
<?php $loader = new \Phalcon\Loader(); $loader->registerDirs(array( __DIR__ . '/config/', __DIR__ . '/models/', __DIR__ . '/plugins/', ))->register(); $app = new \Phalcon\Mvc\Micro(); $app = new \Phalcon\Mvc\Micro($di); $app->handle();
But it does not work this way.
Please advise, is there a possible solution in MicroApp?