ikkez / f3-validation-engine

Validation engine for Cortex and the PHP Fat-Free Framework
GNU General Public License v3.0
12 stars 2 forks source link

Issue in documentation #3

Closed Wh00ps13 closed 4 years ago

Wh00ps13 commented 4 years ago

I tryed the following in my code didn'work.

namespace Model;
class User extends \DB\Cortex {

    use \Validation\Traits\CortexTrait;

    // ...
} 

I solved is by moving the use \Validation\Traits\CortexTrait; out of the class so became.

namespace Model;
use \Validation\Traits\CortexTrait;
class User extends \DB\Cortex {
    // ...
} 
Wh00ps13 commented 4 years ago

Sorry didn't load the trait into autoloader.