How to call function of other module in another controller

i have one controller CompanyController.In which i want to call function of UserModule.

For that i write


But it gives me error

Call to a member function encrypting() 

Whats wrong?

I think you should use Yi::import, for example: