Hello,
I have a multi module project with routes setup which worked until yesterday after I updated phalcon.
Here's a sample route that I worked:
$router->add('/locations/:controller/:action/(\d+)/',[
'module' => 'locations',
'namespace' => 'Locations\controllers',
'controller' => 1,
'action' => 2,
'id' => 3
]);
This worked for https://example.com/locations/poi-translations/index/1/ , now I get this error:
[message:protected] => Locations\controllers\Poi-translationsController handler class cannot be loaded
[string:Exception:private] =>
[code:protected] => 2
[file:protected] => /var/www/example.com/public/index.php
[line:protected] => 5
[trace:Exception:private] => Array
(
[0] => Array
(
[function] => _throwDispatchException
[class] => Phalcon\Mvc\Dispatcher
[type] => ->
[args] => Array
(
[0] => Locations\controllers\Poi-translationsController handler class cannot be loaded
[1] => 2
)
)
If I rename class and file to something that doesn't use camelcase and adjust the route accordingly, it works just fine, and I notice this problem on an older project that works fine in production on 2.0.10 but it doesnt work on local server on 2.0.11.
I wasn't able to find a solution for this, also form changelog I couldn't see anything that might affect routing. Any pointers would be much appreciated.
Thanks!