Correct way adding External classes to Custom Post type and output their methods to template

Correct way adding External classes to Custom Post type and output their methods to template

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)