Hello,
Yesterday i upgrade Phalcon to 3.0. Since, i have a problem, all class in sub-directory of « models » directory not work :
/models/
|- classA.php
|- classB.php
|- dirA/
|- classC.php (classname = dirA_ClassC)
ClassC.php not working : When i call a function in this class i have this error:
PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
PHP Fatal error: Class 'dirA_ClassC' not found in /usr/share/nginx/html/test.php on line 6
But for ClassA & ClassB it's work.
Even if i register dirA :
$loader->registerDirs(
array(
__DIR__ . '/../models/'
)
)->register();
or
$loader->registerDirs(
array(
__DIR__ . '/../models/dirA'
__DIR__ . '/../models/'
)
)->register();
It's not working...
Thank you