How extend User model?

Hi,

The structure:

  • api

    • config

    • models

    • modules

      • v1

        • controllers

        • models

          • User.php
    • web

    • runtime

  • assets

  • config

  • models

  • mudeles

.

.

How can I extend the api user model with the main app module, the extend app/models/User return error not found, or I should have 2 separate modules ?

Thanks,

found it … i was missing / in front of the extend class




class ApiUser extends \common\models\User

{

.

.

}